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 | 300 | 0.000 |
fib_iter | 8 | 890 | 0.009 |
asdl_generated | 4 | 375 | 0.010 |
modules | 2 | 172 | 0.010 |
fib_recursive | 11 | 887 | 0.012 |
parse | 23 | 794 | 0.028 |
scoped_resource | 43 | 1,024 | 0.042 |
tuple_return_value | 16 | 190 | 0.085 |
containers | 12 | 125 | 0.098 |
classes | 3 | 33 | 0.099 |
files | 7 | 72 | 0.104 |
length | 45 | 203 | 0.221 |
cartesian | 86 | 326 | 0.264 |
escape | 105 | 343 | 0.306 |
cgi | 268 | 505 | 0.530 |
varargs | 20 | 12 | 1.620 |
control_flow | 208 | 103 | 2.018 |
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.7 | 7.6 | 0.48 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
fib_recursive | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
loops | 3.8 | 7.2 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
modules | 3.8 | 7.1 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.7 | 0.57 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 12 | 0.000 |
control_flow | 0 | 12 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
modules | 0 | 12 | 0.000 |
containers | 4 | 12 | 0.349 |
escape | 4 | 8 | 0.501 |
varargs | 47 | 60 | 0.778 |
asdl_generated | 7 | 8 | 0.939 |
tuple_return_value | 4 | 4 | 0.998 |
cartesian | 4 | 4 | 1.019 |
parse | 8 | 4 | 1.875 |
loops | 4 | 0 | inf |
scoped_resource | 4 | 0 | inf |
classes | 0 | 0 | NA |