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_iter | gen | 7 | 902 | 0.008 |
modules | gen | 2 | 174 | 0.010 |
fib_recursive | gen | 11 | 895 | 0.012 |
loops | gen | 4 | 301 | 0.012 |
parse | gen | 21 | 787 | 0.027 |
asdl_generated | gen | 11 | 377 | 0.029 |
scoped_resource | gen | 47 | 1,055 | 0.045 |
tuple_return_value | gen | 10 | 201 | 0.050 |
files | gen | 4 | 69 | 0.056 |
containers | gen | 8 | 131 | 0.060 |
classes | gen | 3 | 19 | 0.169 |
length | gen | 45 | 198 | 0.227 |
cartesian | gen | 87 | 321 | 0.271 |
escape | gen | 97 | 354 | 0.275 |
cgi | gen | 270 | 513 | 0.526 |
varargs | gen | 24 | 15 | 1.554 |
control_flow | gen | 207 | 115 | 1.805 |
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.8 | 0.40 |
parse | gen | 3.8 | 7.7 | 0.49 |
asdl_generated | gen | 3.5 | 6.9 | 0.51 |
cartesian | gen | 3.5 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
cgi | gen | 3.7 | 7.1 | 0.52 |
loops | gen | 3.7 | 7.1 | 0.52 |
escape | gen | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 7.1 | 0.54 |
files | gen | 3.7 | 6.8 | 0.54 |
control_flow | gen | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 6.9 | 0.55 |
scoped_resource | gen | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.9 | 6.9 | 0.57 |
containers | gen | 28.4 | 47.8 | 0.59 |
varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 0.000 |
cgi | gen | 0 | 8 | 0.000 |
classes | gen | 0 | 12 | 0.000 |
control_flow | gen | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 0.000 |
length | gen | 0 | 12 | 0.000 |
loops | gen | 0 | 8 | 0.000 |
modules | gen | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 4 | 0.000 |
gc_stack_roots | gen | 2 | 8 | 0.214 |
files | gen | 4 | 8 | 0.475 |
cartesian | gen | 4 | 8 | 0.515 |
varargs | gen | 43 | 57 | 0.760 |
containers | gen | 8 | 8 | 0.968 |
escape | gen | 12 | 8 | 1.511 |
parse | gen | 8 | 4 | 2.101 |
tuple_return_value | gen | 10 | 4 | 2.519 |