Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 17 | 0.000 |
loops | 0 | 210 | 0.000 |
modules | 0 | 127 | 0.000 |
fib_iter | 5 | 613 | 0.008 |
fib_recursive | 7 | 632 | 0.012 |
asdl_generated | 4 | 263 | 0.014 |
parse | 17 | 556 | 0.031 |
scoped_resource | 33 | 728 | 0.045 |
containers | 3 | 70 | 0.046 |
tuple_return_value | 10 | 126 | 0.083 |
files | 9 | 44 | 0.203 |
length | 31 | 140 | 0.218 |
cartesian | 61 | 235 | 0.259 |
escape | 74 | 244 | 0.305 |
cgi | 185 | 358 | 0.516 |
varargs | 8 | 12 | 0.679 |
control_flow | 141 | 74 | 1.909 |
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.9 | 0.41 |
parse | 3.9 | 7.7 | 0.50 |
escape | 3.7 | 7.1 | 0.52 |
loops | 3.8 | 7.3 | 0.52 |
asdl_generated | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.8 | 7.2 | 0.52 |
cartesian | 3.7 | 7.0 | 0.52 |
cgi | 3.8 | 7.1 | 0.53 |
length | 3.8 | 7.2 | 0.53 |
modules | 3.8 | 7.2 | 0.53 |
files | 3.8 | 7.2 | 0.53 |
fib_iter | 3.8 | 7.1 | 0.53 |
tuple_return_value | 3.8 | 7.0 | 0.54 |
fib_recursive | 3.9 | 7.0 | 0.55 |
control_flow | 3.9 | 7.1 | 0.55 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.6 | 7.2 | 0.78 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 8 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
files | 0 | 8 | 0.000 |
length | 0 | 4 | 0.000 |
containers | 10 | 27 | 0.354 |
tuple_return_value | 3 | 8 | 0.443 |
asdl_generated | 4 | 8 | 0.475 |
cartesian | 4 | 8 | 0.510 |
classes | 2 | 4 | 0.549 |
loops | 3 | 4 | 0.631 |
parse | 3 | 4 | 0.855 |
control_flow | 4 | 4 | 1.007 |
varargs | 36 | 36 | 1.019 |
modules | 1 | 0 | inf |
fib_recursive | 0 | 0 | NA |
scoped_resource | 0 | 0 | NA |