Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
classes | gen | 0 | 15 | 0.000 |
loops | gen | 0 | 303 | 0.000 |
fib_iter | gen | 4 | 887 | 0.004 |
fib_recursive | gen | 7 | 885 | 0.008 |
modules | gen | 2 | 178 | 0.010 |
asdl_generated | gen | 11 | 376 | 0.029 |
parse | gen | 26 | 771 | 0.033 |
containers | gen | 4 | 108 | 0.036 |
scoped_resource | gen | 43 | 1,049 | 0.041 |
tuple_return_value | gen | 16 | 199 | 0.081 |
files | gen | 7 | 65 | 0.115 |
length | gen | 44 | 205 | 0.215 |
cartesian | gen | 83 | 326 | 0.254 |
escape | gen | 99 | 347 | 0.284 |
gc_stack_roots | gen | 2 | 4 | 0.430 |
varargs | gen | 12 | 24 | 0.487 |
cgi | gen | 265 | 513 | 0.517 |
control_flow | gen | 210 | 109 | 1.916 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | gen | C++ | Python | C++ : Python |
classes | gen | 4.5 | 10.8 | 0.41 |
gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
parse | gen | 3.8 | 7.6 | 0.50 |
cgi | gen | 3.5 | 6.9 | 0.51 |
escape | gen | 3.5 | 6.9 | 0.51 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 6.9 | 0.53 |
files | gen | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 7.1 | 0.54 |
asdl_generated | gen | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
containers | gen | 28.6 | 48.0 | 0.60 |
varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 0.000 |
control_flow | gen | 0 | 4 | 0.000 |
files | gen | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 8 | 0.000 |
length | gen | 0 | 4 | 0.000 |
modules | gen | 0 | 4 | 0.000 |
classes | gen | 3 | 15 | 0.210 |
containers | gen | 12 | 28 | 0.421 |
fib_iter | gen | 4 | 8 | 0.476 |
scoped_resource | gen | 4 | 8 | 0.486 |
fib_recursive | gen | 4 | 4 | 0.904 |
parse | gen | 4 | 4 | 0.913 |
loops | gen | 4 | 4 | 0.919 |
cgi | gen | 4 | 4 | 0.989 |
tuple_return_value | gen | 4 | 4 | 0.994 |
escape | gen | 8 | 8 | 1.031 |
varargs | gen | 55 | 48 | 1.136 |
cartesian | gen | 8 | 4 | 1.981 |