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 | 27 | 0.000 |
fib_recursive | gen | 7 | 941 | 0.008 |
fib_iter | gen | 8 | 907 | 0.008 |
modules | gen | 2 | 180 | 0.010 |
asdl_generated | gen | 4 | 367 | 0.010 |
loops | gen | 4 | 297 | 0.013 |
containers | gen | 4 | 128 | 0.030 |
parse | gen | 29 | 778 | 0.037 |
scoped_resource | gen | 47 | 1,030 | 0.045 |
files | gen | 8 | 72 | 0.107 |
tuple_return_value | gen | 20 | 184 | 0.109 |
length | gen | 45 | 207 | 0.217 |
cartesian | gen | 82 | 331 | 0.248 |
escape | gen | 109 | 342 | 0.319 |
gc_stack_roots | gen | 2 | 4 | 0.430 |
cgi | gen | 243 | 501 | 0.486 |
varargs | gen | 16 | 19 | 0.811 |
control_flow | gen | 206 | 105 | 1.955 |
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.9 | 0.41 |
cgi | gen | 3.5 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 7.6 | 0.52 |
scoped_resource | gen | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 6.9 | 0.53 |
files | gen | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.9 | 6.8 | 0.58 |
containers | gen | 28.5 | 47.7 | 0.60 |
varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
escape | gen | 0 | 12 | 0.000 |
fib_iter | gen | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 8 | 0.000 |
length | gen | 0 | 4 | 0.000 |
loops | gen | 0 | 4 | 0.000 |
modules | gen | 0 | 4 | 0.000 |
parse | gen | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 8 | 0.000 |
control_flow | gen | 4 | 8 | 0.508 |
asdl_generated | gen | 7 | 12 | 0.602 |
classes | gen | 3 | 4 | 0.831 |
varargs | gen | 50 | 54 | 0.942 |
containers | gen | 11 | 8 | 1.421 |
cgi | gen | 12 | 8 | 1.506 |
cartesian | gen | 8 | 4 | 2.062 |
fib_recursive | gen | 4 | 0 | inf |