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 |
modules | gen | 0 | 176 | 0.000 |
fib_iter | gen | 8 | 886 | 0.009 |
fib_recursive | gen | 11 | 876 | 0.013 |
loops | gen | 4 | 284 | 0.013 |
asdl_generated | gen | 11 | 380 | 0.029 |
parse | gen | 29 | 781 | 0.038 |
scoped_resource | gen | 47 | 1,097 | 0.043 |
containers | gen | 8 | 118 | 0.069 |
tuple_return_value | gen | 20 | 188 | 0.107 |
files | gen | 8 | 72 | 0.111 |
gc_stack_roots | gen | 2 | 12 | 0.146 |
classes | gen | 3 | 16 | 0.201 |
length | gen | 41 | 201 | 0.205 |
cartesian | gen | 82 | 332 | 0.246 |
escape | gen | 104 | 371 | 0.281 |
cgi | gen | 255 | 517 | 0.493 |
varargs | gen | 23 | 16 | 1.470 |
control_flow | gen | 206 | 113 | 1.828 |
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.4 | 6.9 | 0.49 |
scoped_resource | gen | 3.5 | 7.1 | 0.50 |
parse | gen | 3.9 | 7.6 | 0.52 |
escape | gen | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 6.8 | 0.54 |
cgi | gen | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 6.9 | 0.55 |
loops | gen | 3.9 | 7.1 | 0.56 |
control_flow | gen | 3.9 | 6.9 | 0.57 |
containers | gen | 28.6 | 47.8 | 0.60 |
varargs | gen | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | gen | C++ | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 0.000 |
classes | gen | 0 | 16 | 0.000 |
fib_iter | gen | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 0.000 |
loops | gen | 0 | 12 | 0.000 |
parse | gen | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 8 | 0.000 |
modules | gen | 2 | 8 | 0.235 |
length | gen | 4 | 12 | 0.317 |
containers | gen | 8 | 20 | 0.415 |
escape | gen | 4 | 8 | 0.502 |
varargs | gen | 43 | 56 | 0.770 |
control_flow | gen | 4 | 4 | 0.984 |
cartesian | gen | 8 | 4 | 1.942 |
cgi | gen | 0 | 0 | NA |
gc_stack_roots | gen | 0 | 0 | NA |