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 | 170 | 0.000 |
fib_iter | 4 | 891 | 0.004 |
loops | 4 | 298 | 0.012 |
fib_recursive | 11 | 877 | 0.012 |
asdl_generated | 5 | 384 | 0.014 |
parse | 30 | 798 | 0.037 |
scoped_resource | 48 | 1,028 | 0.046 |
tuple_return_value | 12 | 186 | 0.065 |
files | 7 | 73 | 0.101 |
containers | 12 | 101 | 0.114 |
classes | 3 | 27 | 0.117 |
length | 41 | 200 | 0.204 |
cartesian | 82 | 360 | 0.229 |
escape | 101 | 343 | 0.295 |
cgi | 265 | 510 | 0.519 |
control_flow | 208 | 109 | 1.897 |
varargs | 27 | 13 | 2.148 |
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 |
parse | 3.8 | 7.7 | 0.49 |
asdl_generated | 3.7 | 7.1 | 0.52 |
cartesian | 3.7 | 7.1 | 0.52 |
control_flow | 3.7 | 7.1 | 0.52 |
loops | 3.8 | 7.2 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
cgi | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.8 | 0.56 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 4 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
parse | 0 | 4 | 0.000 |
scoped_resource | 0 | 4 | 0.000 |
containers | 4 | 31 | 0.123 |
modules | 2 | 12 | 0.150 |
escape | 4 | 12 | 0.338 |
length | 4 | 8 | 0.510 |
varargs | 39 | 59 | 0.657 |
asdl_generated | 5 | 8 | 0.680 |
fib_iter | 4 | 4 | 0.942 |
tuple_return_value | 8 | 8 | 0.993 |
cgi | 4 | 4 | 1.007 |
cartesian | 8 | 4 | 2.059 |