Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
modules | 0 | 181 | 0.000 |
fib_recursive | 7 | 872 | 0.008 |
fib_iter | 8 | 889 | 0.009 |
loops | 4 | 287 | 0.013 |
asdl_generated | 11 | 372 | 0.029 |
parse | 26 | 781 | 0.033 |
scoped_resource | 43 | 1,048 | 0.041 |
containers | 8 | 112 | 0.070 |
tuple_return_value | 20 | 199 | 0.101 |
files | 7 | 61 | 0.122 |
classes | 3 | 24 | 0.135 |
length | 45 | 208 | 0.214 |
cartesian | 91 | 316 | 0.288 |
escape | 102 | 344 | 0.296 |
cgi | 271 | 504 | 0.538 |
control_flow | 206 | 109 | 1.891 |
varargs | 29 | 11 | 2.550 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.5 | 10.8 | 0.41 |
parse | 3.8 | 7.5 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
tuple_return_value | 3.5 | 6.9 | 0.51 |
cartesian | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
length | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
modules | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
cartesian | 0 | 16 | 0.000 |
classes | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
files | 0 | 15 | 0.000 |
loops | 0 | 12 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
fib_recursive | 4 | 12 | 0.308 |
containers | 8 | 24 | 0.328 |
modules | 2 | 4 | 0.455 |
control_flow | 4 | 8 | 0.491 |
scoped_resource | 4 | 8 | 0.495 |
escape | 4 | 8 | 0.508 |
parse | 4 | 8 | 0.535 |
varargs | 38 | 61 | 0.615 |
cgi | 8 | 8 | 1.012 |
length | 0 | 0 | NA |