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 | 24 | 0.000 |
loops | 0 | 300 | 0.000 |
fib_iter | 4 | 905 | 0.004 |
modules | 2 | 179 | 0.010 |
fib_recursive | 11 | 877 | 0.012 |
asdl_generated | 5 | 378 | 0.014 |
parse | 19 | 765 | 0.024 |
scoped_resource | 44 | 1,053 | 0.041 |
containers | 8 | 94 | 0.082 |
tuple_return_value | 16 | 188 | 0.087 |
files | 8 | 72 | 0.105 |
length | 40 | 200 | 0.200 |
cartesian | 83 | 327 | 0.253 |
escape | 97 | 351 | 0.277 |
cgi | 269 | 510 | 0.527 |
varargs | 12 | 20 | 0.578 |
control_flow | 206 | 113 | 1.826 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.7 | 0.40 |
escape | 3.5 | 6.9 | 0.51 |
parse | 3.9 | 7.6 | 0.52 |
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 |
fib_recursive | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
loops | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
control_flow | 3.8 | 6.8 | 0.56 |
containers | 28.7 | 48.0 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 12 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
containers | 8 | 43 | 0.179 |
classes | 3 | 8 | 0.421 |
loops | 4 | 8 | 0.453 |
fib_iter | 4 | 8 | 0.473 |
length | 4 | 8 | 0.499 |
cartesian | 8 | 12 | 0.691 |
scoped_resource | 4 | 4 | 0.992 |
tuple_return_value | 4 | 4 | 1.017 |
varargs | 55 | 53 | 1.037 |
asdl_generated | 5 | 4 | 1.344 |
escape | 12 | 8 | 1.526 |
parse | 11 | 4 | 2.786 |
control_flow | 0 | 0 | NA |