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 | 15 | 0.000 |
loops | 0 | 308 | 0.000 |
fib_iter | 8 | 889 | 0.009 |
modules | 2 | 178 | 0.010 |
fib_recursive | 11 | 890 | 0.012 |
asdl_generated | 11 | 373 | 0.029 |
containers | 4 | 120 | 0.032 |
parse | 30 | 769 | 0.039 |
scoped_resource | 47 | 1,021 | 0.046 |
tuple_return_value | 14 | 186 | 0.073 |
files | 7 | 73 | 0.102 |
length | 44 | 200 | 0.221 |
cartesian | 87 | 333 | 0.261 |
escape | 98 | 354 | 0.277 |
cgi | 251 | 509 | 0.492 |
varargs | 25 | 20 | 1.231 |
control_flow | 209 | 102 | 2.037 |
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.7 | 0.41 |
scoped_resource | 3.5 | 7.1 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
fib_recursive | 3.5 | 6.9 | 0.51 |
parse | 3.8 | 7.3 | 0.52 |
cgi | 3.7 | 7.1 | 0.52 |
modules | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
asdl_generated | 3.7 | 6.8 | 0.54 |
control_flow | 3.7 | 6.8 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.8 | 0.56 |
length | 3.8 | 6.8 | 0.56 |
tuple_return_value | 3.9 | 6.8 | 0.58 |
containers | 28.5 | 48.0 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
control_flow | 0 | 12 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
modules | 0 | 4 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 0 | 12 | 0.000 |
classes | 3 | 15 | 0.212 |
cartesian | 4 | 8 | 0.493 |
containers | 12 | 16 | 0.724 |
varargs | 41 | 52 | 0.789 |
tuple_return_value | 7 | 8 | 0.840 |
loops | 4 | 4 | 0.931 |
cgi | 4 | 4 | 1.000 |
escape | 8 | 0 | inf |