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 |
modules | 0 | 180 | 0.000 |
fib_iter | 8 | 881 | 0.009 |
asdl_generated | 4 | 373 | 0.010 |
fib_recursive | 11 | 879 | 0.012 |
loops | 4 | 289 | 0.013 |
parse | 25 | 769 | 0.033 |
scoped_resource | 40 | 1,069 | 0.037 |
containers | 4 | 105 | 0.037 |
files | 7 | 71 | 0.104 |
tuple_return_value | 20 | 185 | 0.108 |
length | 41 | 205 | 0.201 |
cartesian | 91 | 328 | 0.276 |
escape | 98 | 341 | 0.288 |
varargs | 12 | 28 | 0.446 |
cgi | 254 | 509 | 0.498 |
control_flow | 208 | 112 | 1.862 |
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.8 | 0.40 |
asdl_generated | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
fib_iter | 3.7 | 7.1 | 0.52 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
cartesian | 3.8 | 6.9 | 0.55 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.7 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
cgi | 0 | 8 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
parse | 4 | 12 | 0.348 |
classes | 3 | 8 | 0.412 |
containers | 12 | 28 | 0.415 |
modules | 2 | 4 | 0.444 |
escape | 8 | 12 | 0.661 |
asdl_generated | 7 | 8 | 0.891 |
length | 4 | 4 | 0.933 |
varargs | 54 | 44 | 1.231 |
scoped_resource | 8 | 4 | 1.983 |