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 |
loops | gen | 0 | 289 | 0.000 |
modules | gen | 0 | 182 | 0.000 |
fib_recursive | gen | 7 | 880 | 0.008 |
fib_iter | gen | 8 | 894 | 0.008 |
asdl_generated | gen | 11 | 398 | 0.027 |
parse | gen | 22 | 763 | 0.029 |
scoped_resource | gen | 47 | 1,110 | 0.042 |
files | gen | 4 | 68 | 0.055 |
containers | gen | 8 | 107 | 0.072 |
tuple_return_value | gen | 20 | 191 | 0.105 |
length | gen | 37 | 207 | 0.178 |
classes | gen | 3 | 15 | 0.209 |
varargs | gen | 8 | 28 | 0.279 |
escape | gen | 104 | 348 | 0.298 |
cartesian | gen | 106 | 325 | 0.326 |
cgi | gen | 266 | 510 | 0.522 |
control_flow | gen | 208 | 107 | 1.944 |
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.3 | 10.6 | 0.41 |
escape | gen | 3.5 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 7.6 | 0.52 |
cgi | gen | 3.7 | 7.1 | 0.52 |
modules | gen | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
scoped_resource | gen | 3.8 | 7.1 | 0.54 |
tuple_return_value | 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 |
loops | gen | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.9 | 6.9 | 0.57 |
containers | gen | 28.7 | 47.8 | 0.60 |
varargs | gen | 5.4 | 7.1 | 0.76 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
asdl_generated | gen | 0 | 8 | 0.000 |
classes | gen | 0 | 15 | 0.000 |
control_flow | gen | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 0.000 |
containers | gen | 8 | 28 | 0.279 |
loops | gen | 4 | 8 | 0.458 |
files | gen | 4 | 8 | 0.466 |
escape | gen | 4 | 8 | 0.499 |
cartesian | gen | 4 | 8 | 0.514 |
parse | gen | 7 | 12 | 0.613 |
cgi | gen | 4 | 4 | 0.989 |
varargs | gen | 58 | 44 | 1.333 |
length | gen | 8 | 4 | 2.055 |
fib_recursive | gen | 4 | 0 | inf |
modules | gen | 2 | 0 | inf |