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 | 178 | 0.000 |
fib_iter | 8 | 898 | 0.009 |
loops | 4 | 296 | 0.012 |
fib_recursive | 11 | 874 | 0.012 |
asdl_generated | 7 | 373 | 0.019 |
parse | 26 | 761 | 0.034 |
scoped_resource | 43 | 1,054 | 0.041 |
containers | 8 | 96 | 0.081 |
tuple_return_value | 20 | 200 | 0.101 |
files | 8 | 71 | 0.108 |
classes | 3 | 19 | 0.169 |
length | 44 | 202 | 0.218 |
cartesian | 82 | 319 | 0.257 |
escape | 98 | 355 | 0.276 |
cgi | 258 | 510 | 0.505 |
varargs | 25 | 24 | 1.036 |
control_flow | 206 | 109 | 1.886 |
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.6 | 0.50 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
loops | 3.8 | 7.2 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
fib_iter | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 12 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
containers | 8 | 40 | 0.194 |
asdl_generated | 4 | 8 | 0.447 |
modules | 2 | 4 | 0.449 |
scoped_resource | 4 | 8 | 0.486 |
parse | 4 | 8 | 0.535 |
cartesian | 8 | 12 | 0.686 |
varargs | 41 | 47 | 0.864 |
control_flow | 4 | 4 | 0.979 |
escape | 8 | 4 | 1.966 |
cgi | 8 | 4 | 1.974 |
loops | 0 | 0 | NA |