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 | 24 | 0.000 |
modules | 0 | 178 | 0.000 |
fib_iter | 8 | 885 | 0.009 |
fib_recursive | 11 | 914 | 0.012 |
loops | 4 | 292 | 0.013 |
asdl_generated | 11 | 379 | 0.028 |
parse | 23 | 782 | 0.029 |
scoped_resource | 35 | 1,061 | 0.033 |
containers | 4 | 113 | 0.035 |
files | 7 | 72 | 0.104 |
tuple_return_value | 21 | 184 | 0.111 |
length | 37 | 200 | 0.184 |
cartesian | 85 | 326 | 0.261 |
escape | 97 | 355 | 0.274 |
cgi | 270 | 512 | 0.527 |
varargs | 20 | 12 | 1.638 |
control_flow | 207 | 111 | 1.870 |
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 |
parse | 3.8 | 7.7 | 0.49 |
scoped_resource | 3.5 | 6.9 | 0.51 |
cgi | 3.7 | 7.1 | 0.52 |
files | 3.7 | 7.1 | 0.52 |
loops | 3.7 | 7.1 | 0.52 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.8 | 0.54 |
asdl_generated | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 7.1 | 0.56 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 16 | 0.000 |
cgi | 0 | 8 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
modules | 2 | 4 | 0.456 |
classes | 4 | 8 | 0.459 |
containers | 12 | 24 | 0.494 |
cartesian | 4 | 8 | 0.504 |
varargs | 47 | 60 | 0.786 |
parse | 8 | 8 | 0.949 |
length | 8 | 8 | 1.020 |
escape | 8 | 4 | 2.006 |
scoped_resource | 12 | 0 | inf |