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 | 23 | 0.000 |
modules | 0 | 178 | 0.000 |
fib_iter | 4 | 893 | 0.004 |
fib_recursive | 11 | 883 | 0.012 |
loops | 4 | 293 | 0.013 |
asdl_generated | 11 | 400 | 0.027 |
parse | 27 | 754 | 0.035 |
containers | 4 | 104 | 0.037 |
scoped_resource | 44 | 1,042 | 0.042 |
files | 7 | 69 | 0.105 |
tuple_return_value | 20 | 186 | 0.108 |
length | 40 | 202 | 0.198 |
cartesian | 90 | 328 | 0.275 |
escape | 106 | 344 | 0.310 |
cgi | 254 | 509 | 0.499 |
varargs | 24 | 20 | 1.188 |
control_flow | 210 | 107 | 1.966 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.2 | 10.8 | 0.39 |
asdl_generated | 3.5 | 7.1 | 0.50 |
cgi | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
fib_recursive | 3.5 | 6.9 | 0.51 |
cartesian | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.8 | 0.56 |
containers | 28.7 | 47.7 | 0.60 |
varargs | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 4 | 0.000 |
cartesian | 0 | 4 | 0.000 |
cgi | 0 | 4 | 0.000 |
control_flow | 0 | 8 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 8 | 0.000 |
loops | 0 | 4 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
parse | 4 | 16 | 0.238 |
containers | 11 | 32 | 0.357 |
classes | 3 | 8 | 0.433 |
modules | 2 | 4 | 0.449 |
length | 4 | 8 | 0.494 |
varargs | 44 | 52 | 0.837 |
fib_iter | 4 | 4 | 0.952 |
scoped_resource | 4 | 0 | inf |