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 |
fib_iter | gen | 8 | 1,036 | 0.008 |
modules | gen | 2 | 185 | 0.010 |
asdl_generated | gen | 4 | 382 | 0.010 |
fib_recursive | gen | 11 | 979 | 0.011 |
loops | gen | 4 | 286 | 0.014 |
parse | gen | 26 | 771 | 0.034 |
containers | gen | 4 | 117 | 0.035 |
scoped_resource | gen | 44 | 1,063 | 0.041 |
files | gen | 8 | 76 | 0.100 |
tuple_return_value | gen | 20 | 183 | 0.111 |
classes | gen | 4 | 20 | 0.181 |
length | gen | 40 | 206 | 0.197 |
cartesian | gen | 82 | 328 | 0.250 |
escape | gen | 99 | 342 | 0.291 |
cgi | gen | 241 | 500 | 0.482 |
varargs | gen | 8 | 16 | 0.510 |
control_flow | gen | 212 | 101 | 2.093 |
gc_stack_roots | gen | 0 | 0 | NA |
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 |
gc_stack_roots | gen | 3.5 | 7.1 | 0.50 |
parse | gen | 3.8 | 7.6 | 0.50 |
fib_iter | gen | 3.5 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 7.1 | 0.52 |
cartesian | gen | 3.5 | 6.8 | 0.52 |
asdl_generated | gen | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 6.9 | 0.53 |
loops | gen | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
files | gen | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 7.1 | 0.56 |
containers | gen | 28.6 | 47.8 | 0.60 |
varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
classes | gen | 0 | 12 | 0.000 |
control_flow | gen | 0 | 12 | 0.000 |
fib_iter | gen | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 4 | 0.000 |
files | gen | 0 | 12 | 0.000 |
loops | gen | 0 | 12 | 0.000 |
modules | gen | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 12 | 0.000 |
gc_stack_roots | gen | 2 | 13 | 0.137 |
scoped_resource | gen | 4 | 12 | 0.331 |
containers | gen | 12 | 24 | 0.515 |
escape | gen | 8 | 12 | 0.659 |
parse | gen | 4 | 4 | 0.935 |
cgi | gen | 12 | 12 | 0.988 |
length | gen | 4 | 4 | 1.004 |
varargs | gen | 58 | 57 | 1.021 |
asdl_generated | gen | 7 | 0 | inf |
cartesian | gen | 8 | 0 | inf |