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 |
gc_stack_roots | gen | 0 | 4 | 0.000 |
fib_recursive | gen | 8 | 880 | 0.009 |
fib_iter | gen | 8 | 883 | 0.009 |
modules | gen | 2 | 186 | 0.010 |
loops | gen | 4 | 302 | 0.014 |
asdl_generated | gen | 11 | 371 | 0.030 |
parse | gen | 25 | 812 | 0.031 |
containers | gen | 4 | 112 | 0.036 |
scoped_resource | gen | 44 | 1,044 | 0.042 |
files | gen | 4 | 74 | 0.051 |
tuple_return_value | gen | 16 | 196 | 0.083 |
classes | gen | 4 | 20 | 0.194 |
length | gen | 46 | 200 | 0.228 |
cartesian | gen | 91 | 324 | 0.281 |
escape | gen | 100 | 346 | 0.289 |
varargs | gen | 8 | 20 | 0.385 |
cgi | gen | 265 | 525 | 0.505 |
control_flow | gen | 210 | 114 | 1.850 |
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.7 | 0.41 |
gc_stack_roots | gen | 3.5 | 7.1 | 0.50 |
files | gen | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 7.6 | 0.52 |
scoped_resource | gen | 3.7 | 7.1 | 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 |
modules | 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 |
cartesian | gen | 3.7 | 6.8 | 0.54 |
length | gen | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 6.9 | 0.57 |
fib_iter | gen | 3.9 | 6.9 | 0.57 |
containers | gen | 28.5 | 47.8 | 0.59 |
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 |
cartesian | gen | 0 | 8 | 0.000 |
classes | gen | 0 | 12 | 0.000 |
control_flow | gen | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 12 | 0.000 |
length | gen | 0 | 8 | 0.000 |
loops | gen | 0 | 8 | 0.000 |
modules | gen | 0 | 4 | 0.000 |
gc_stack_roots | gen | 2 | 8 | 0.225 |
containers | gen | 12 | 28 | 0.433 |
fib_recursive | gen | 4 | 8 | 0.491 |
scoped_resource | gen | 4 | 8 | 0.502 |
tuple_return_value | gen | 4 | 8 | 0.507 |
parse | gen | 4 | 8 | 0.526 |
files | gen | 4 | 4 | 0.917 |
escape | gen | 8 | 8 | 0.993 |
varargs | gen | 58 | 53 | 1.111 |
cgi | gen | 4 | 0 | inf |