Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 22 | 0.000 |
containers | 0 | 124 | 0.000 |
fib_iter | 4 | 900 | 0.004 |
modules | 2 | 170 | 0.012 |
fib_recursive | 11 | 872 | 0.012 |
loops | 4 | 288 | 0.013 |
asdl_generated | 11 | 367 | 0.029 |
scoped_resource | 40 | 1,038 | 0.038 |
parse | 30 | 773 | 0.038 |
files | 4 | 73 | 0.052 |
tuple_return_value | 20 | 186 | 0.109 |
length | 37 | 197 | 0.186 |
cartesian | 88 | 323 | 0.273 |
escape | 107 | 341 | 0.314 |
cgi | 268 | 521 | 0.515 |
varargs | 20 | 20 | 0.979 |
control_flow | 208 | 105 | 1.982 |
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.6 | 0.42 |
asdl_generated | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.5 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
cgi | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
containers | 28.7 | 47.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 12 | 0.000 |
cgi | 0 | 8 | 0.000 |
control_flow | 0 | 12 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 0 | 12 | 0.000 |
parse | 0 | 8 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
classes | 3 | 11 | 0.291 |
length | 8 | 12 | 0.691 |
varargs | 47 | 52 | 0.904 |
files | 4 | 4 | 0.937 |
cartesian | 8 | 8 | 0.992 |
fib_iter | 4 | 4 | 0.992 |
containers | 15 | 12 | 1.279 |
scoped_resource | 8 | 4 | 1.974 |