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 | 19 | 0.000 |
modules | gen | 0 | 175 | 0.000 |
fib_iter | gen | 8 | 905 | 0.009 |
loops | gen | 3 | 295 | 0.010 |
fib_recursive | gen | 11 | 897 | 0.012 |
parse | gen | 23 | 805 | 0.028 |
asdl_generated | gen | 11 | 375 | 0.029 |
scoped_resource | gen | 44 | 1,053 | 0.042 |
tuple_return_value | gen | 16 | 185 | 0.084 |
containers | gen | 11 | 120 | 0.089 |
files | gen | 7 | 65 | 0.115 |
length | gen | 26 | 204 | 0.127 |
cartesian | gen | 80 | 354 | 0.227 |
escape | gen | 101 | 343 | 0.295 |
gc_stack_roots | gen | 2 | 4 | 0.439 |
cgi | gen | 268 | 510 | 0.524 |
varargs | gen | 15 | 16 | 0.976 |
control_flow | gen | 164 | 111 | 1.479 |
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 |
fib_recursive | 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 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 6.9 | 0.53 |
loops | gen | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
containers | gen | 28.5 | 47.8 | 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 | 8 | 0.000 |
cgi | gen | 0 | 4 | 0.000 |
control_flow | gen | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 0.000 |
files | gen | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 8 | 0.000 |
loops | gen | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 8 | 0.000 |
modules | gen | 2 | 12 | 0.148 |
containers | gen | 4 | 24 | 0.148 |
classes | gen | 3 | 12 | 0.273 |
parse | gen | 4 | 12 | 0.317 |
tuple_return_value | gen | 4 | 8 | 0.485 |
varargs | gen | 50 | 55 | 0.906 |
cartesian | gen | 4 | 4 | 0.998 |
escape | gen | 8 | 8 | 1.016 |
length | gen | 18 | 4 | 4.612 |