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 | 20 | 0.000 |
fib_iter | gen | 8 | 894 | 0.008 |
modules | gen | 2 | 171 | 0.011 |
fib_recursive | gen | 11 | 881 | 0.013 |
loops | gen | 4 | 287 | 0.013 |
asdl_generated | gen | 7 | 381 | 0.019 |
containers | gen | 4 | 122 | 0.033 |
parse | gen | 29 | 755 | 0.039 |
scoped_resource | gen | 49 | 1,050 | 0.047 |
files | gen | 8 | 72 | 0.107 |
tuple_return_value | gen | 20 | 189 | 0.107 |
length | gen | 37 | 204 | 0.180 |
cartesian | gen | 87 | 325 | 0.268 |
escape | gen | 99 | 344 | 0.287 |
varargs | gen | 8 | 24 | 0.345 |
cgi | gen | 269 | 511 | 0.526 |
control_flow | gen | 206 | 112 | 1.848 |
gc_stack_roots | gen | 2 | 0 | inf |
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 |
parse | gen | 3.7 | 7.6 | 0.48 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
scoped_resource | gen | 3.5 | 6.9 | 0.51 |
length | gen | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.5 | 6.8 | 0.52 |
fib_recursive | gen | 3.5 | 6.8 | 0.52 |
loops | gen | 3.8 | 7.2 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 6.9 | 0.53 |
files | gen | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.8 | 7.1 | 0.54 |
modules | gen | 3.8 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
containers | gen | 28.3 | 47.8 | 0.59 |
varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
cgi | gen | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 12 | 0.000 |
loops | gen | 0 | 8 | 0.000 |
modules | gen | 0 | 12 | 0.000 |
parse | gen | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 4 | 0.000 |
tuple_return_value | gen | 0 | 8 | 0.000 |
classes | gen | 3 | 12 | 0.281 |
cartesian | gen | 4 | 8 | 0.493 |
containers | gen | 12 | 16 | 0.774 |
asdl_generated | gen | 4 | 4 | 0.900 |
control_flow | gen | 4 | 4 | 0.960 |
escape | gen | 8 | 8 | 0.988 |
varargs | gen | 58 | 48 | 1.208 |
length | gen | 8 | 4 | 2.044 |