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 | 26 | 0.000 |
gc_stack_roots | gen | 0 | 8 | 0.000 |
loops | gen | 0 | 285 | 0.000 |
modules | gen | 0 | 181 | 0.000 |
fib_iter | gen | 4 | 911 | 0.004 |
fib_recursive | gen | 11 | 885 | 0.012 |
asdl_generated | gen | 11 | 392 | 0.027 |
parse | gen | 25 | 756 | 0.034 |
scoped_resource | gen | 47 | 1,049 | 0.045 |
containers | gen | 8 | 105 | 0.073 |
tuple_return_value | gen | 20 | 190 | 0.105 |
files | gen | 8 | 64 | 0.119 |
length | gen | 44 | 203 | 0.218 |
cartesian | gen | 86 | 350 | 0.246 |
escape | gen | 103 | 350 | 0.294 |
cgi | gen | 261 | 503 | 0.519 |
varargs | gen | 25 | 24 | 1.025 |
control_flow | gen | 210 | 106 | 1.972 |
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.3 | 10.7 | 0.40 |
escape | gen | 3.5 | 7.1 | 0.50 |
cgi | gen | 3.5 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 7.1 | 0.52 |
parse | gen | 3.9 | 7.5 | 0.53 |
loops | gen | 3.8 | 7.2 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
files | gen | 3.8 | 7.1 | 0.54 |
control_flow | gen | 3.7 | 6.8 | 0.54 |
length | 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 |
fib_iter | gen | 3.8 | 6.8 | 0.56 |
fib_recursive | gen | 3.8 | 6.8 | 0.56 |
containers | gen | 28.7 | 47.8 | 0.60 |
varargs | gen | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 0.000 |
control_flow | gen | 0 | 8 | 0.000 |
files | gen | 0 | 12 | 0.000 |
length | gen | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 4 | 0.000 |
tuple_return_value | gen | 0 | 4 | 0.000 |
containers | gen | 8 | 31 | 0.246 |
loops | gen | 4 | 12 | 0.307 |
escape | gen | 4 | 12 | 0.331 |
modules | gen | 2 | 4 | 0.441 |
gc_stack_roots | gen | 2 | 4 | 0.445 |
parse | gen | 4 | 8 | 0.530 |
classes | gen | 3 | 4 | 0.729 |
varargs | gen | 41 | 48 | 0.854 |
fib_iter | gen | 4 | 4 | 0.943 |
cgi | gen | 8 | 8 | 1.005 |
cartesian | gen | 12 | 4 | 2.921 |
fib_recursive | gen | 0 | 0 | NA |