Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
loops | 0 | 315 | 0.000 |
fib_recursive | 7 | 934 | 0.008 |
fib_iter | 8 | 888 | 0.008 |
modules | 2 | 179 | 0.011 |
asdl_generated | 11 | 405 | 0.026 |
parse | 25 | 771 | 0.033 |
containers | 4 | 116 | 0.033 |
scoped_resource | 47 | 1,036 | 0.046 |
files | 7 | 68 | 0.108 |
tuple_return_value | 20 | 187 | 0.108 |
length | 40 | 204 | 0.196 |
classes | 3 | 15 | 0.211 |
cartesian | 86 | 318 | 0.272 |
escape | 98 | 343 | 0.285 |
cgi | 265 | 564 | 0.469 |
control_flow | 210 | 111 | 1.896 |
varargs | 35 | 12 | 2.913 |
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.6 | 0.42 |
parse | 3.8 | 7.6 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
scoped_resource | 3.7 | 7.1 | 0.52 |
cgi | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
asdl_generated | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.8 | 0.56 |
tuple_return_value | 3.8 | 6.7 | 0.57 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.6 | 6.8 | 0.83 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 4 | 0.000 |
classes | 0 | 15 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
files | 0 | 8 | 0.000 |
modules | 0 | 4 | 0.000 |
scoped_resource | 0 | 12 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
cartesian | 4 | 12 | 0.345 |
fib_recursive | 4 | 8 | 0.450 |
varargs | 31 | 60 | 0.518 |
containers | 12 | 20 | 0.580 |
loops | 4 | 4 | 0.931 |
cgi | 4 | 4 | 0.994 |
length | 4 | 4 | 0.999 |
escape | 8 | 8 | 1.022 |
parse | 4 | 4 | 1.048 |