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 | 121 | 0.000 |
modules | 0 | 175 | 0.000 |
fib_iter | 4 | 894 | 0.004 |
fib_recursive | 11 | 873 | 0.012 |
loops | 4 | 301 | 0.014 |
asdl_generated | 7 | 387 | 0.019 |
parse | 31 | 767 | 0.041 |
scoped_resource | 43 | 1,016 | 0.043 |
tuple_return_value | 10 | 192 | 0.053 |
files | 4 | 69 | 0.054 |
classes | 3 | 27 | 0.117 |
length | 41 | 201 | 0.205 |
cartesian | 79 | 345 | 0.229 |
escape | 95 | 349 | 0.272 |
cgi | 269 | 505 | 0.534 |
varargs | 16 | 15 | 1.053 |
control_flow | 205 | 119 | 1.721 |
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.7 | 0.41 |
parse | 3.8 | 7.6 | 0.50 |
scoped_resource | 3.5 | 7.1 | 0.50 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
cgi | 3.7 | 7.1 | 0.52 |
escape | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
fib_iter | 3.7 | 6.7 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
length | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 12 | 0.000 |
classes | 0 | 4 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
loops | 0 | 4 | 0.000 |
parse | 0 | 4 | 0.000 |
modules | 2 | 8 | 0.228 |
asdl_generated | 4 | 8 | 0.456 |
files | 4 | 8 | 0.463 |
length | 4 | 8 | 0.475 |
scoped_resource | 4 | 8 | 0.494 |
varargs | 49 | 58 | 0.842 |
fib_iter | 4 | 4 | 0.954 |
containers | 16 | 16 | 0.974 |
tuple_return_value | 10 | 8 | 1.263 |
cartesian | 12 | 4 | 2.949 |
escape | 12 | 4 | 2.963 |
control_flow | 4 | 0 | inf |