Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 373 | 0.000 |
fib_iter | 4 | 914 | 0.004 |
modules | 2 | 177 | 0.010 |
fib_recursive | 11 | 884 | 0.012 |
loops | 4 | 293 | 0.012 |
parse | 22 | 770 | 0.029 |
scoped_resource | 47 | 1,024 | 0.046 |
containers | 10 | 109 | 0.092 |
files | 7 | 69 | 0.096 |
tuple_return_value | 20 | 190 | 0.106 |
classes | 3 | 22 | 0.147 |
length | 41 | 214 | 0.193 |
cartesian | 75 | 343 | 0.218 |
escape | 91 | 342 | 0.267 |
varargs | 12 | 24 | 0.486 |
cgi | 263 | 513 | 0.513 |
control_flow | 211 | 105 | 1.996 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.6 | 10.7 | 0.43 |
parse | 3.8 | 7.5 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
fib_recursive | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
loops | 3.9 | 7.1 | 0.56 |
containers | 28.5 | 48.0 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 9 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 4 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
containers | 5 | 28 | 0.178 |
files | 3 | 8 | 0.406 |
parse | 7 | 12 | 0.611 |
fib_iter | 4 | 4 | 0.937 |
cgi | 4 | 4 | 0.995 |
varargs | 54 | 48 | 1.134 |
asdl_generated | 11 | 8 | 1.356 |
escape | 16 | 8 | 1.975 |
cartesian | 16 | 0 | inf |
length | 4 | 0 | inf |