Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
containers | 0 | 110 | 0.000 |
loops | 0 | 295 | 0.000 |
fib_iter | 8 | 886 | 0.009 |
modules | 2 | 173 | 0.011 |
fib_recursive | 11 | 894 | 0.012 |
asdl_generated | 6 | 373 | 0.015 |
scoped_resource | 40 | 1,020 | 0.039 |
parse | 30 | 758 | 0.039 |
files | 4 | 74 | 0.054 |
tuple_return_value | 17 | 188 | 0.093 |
classes | 4 | 25 | 0.138 |
length | 38 | 202 | 0.187 |
cartesian | 86 | 340 | 0.254 |
escape | 107 | 351 | 0.305 |
cgi | 256 | 512 | 0.500 |
varargs | 24 | 16 | 1.519 |
control_flow | 203 | 117 | 1.729 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.5 | 10.8 | 0.41 |
escape | 3.4 | 7.1 | 0.48 |
parse | 3.8 | 7.6 | 0.50 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
modules | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
loops | 3.9 | 7.1 | 0.56 |
fib_iter | 3.8 | 6.8 | 0.56 |
control_flow | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 4 | 0.000 |
classes | 0 | 8 | 0.000 |
escape | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
modules | 0 | 12 | 0.000 |
parse | 0 | 12 | 0.000 |
cartesian | 4 | 12 | 0.331 |
tuple_return_value | 3 | 8 | 0.436 |
asdl_generated | 6 | 12 | 0.483 |
containers | 16 | 33 | 0.491 |
loops | 4 | 8 | 0.529 |
varargs | 43 | 58 | 0.743 |
length | 8 | 8 | 0.936 |
scoped_resource | 8 | 8 | 0.999 |
files | 4 | 4 | 1.017 |
control_flow | 4 | 0 | inf |