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 | 20 | 0.000 |
fib_iter | 4 | 882 | 0.004 |
modules | 2 | 174 | 0.011 |
fib_recursive | 11 | 877 | 0.012 |
loops | 4 | 293 | 0.013 |
asdl_generated | 11 | 376 | 0.029 |
parse | 26 | 762 | 0.034 |
scoped_resource | 43 | 1,028 | 0.042 |
files | 4 | 72 | 0.052 |
tuple_return_value | 20 | 188 | 0.107 |
containers | 16 | 118 | 0.136 |
length | 40 | 200 | 0.200 |
cartesian | 89 | 332 | 0.269 |
escape | 102 | 347 | 0.295 |
cgi | 265 | 507 | 0.524 |
varargs | 12 | 16 | 0.728 |
control_flow | 206 | 104 | 1.987 |
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 |
files | 3.5 | 7.1 | 0.50 |
parse | 3.9 | 7.6 | 0.52 |
asdl_generated | 3.7 | 7.1 | 0.52 |
escape | 3.5 | 6.8 | 0.52 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
cartesian | 0 | 4 | 0.000 |
containers | 0 | 20 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 0 | 8 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
parse | 4 | 16 | 0.234 |
classes | 4 | 12 | 0.307 |
length | 4 | 12 | 0.334 |
control_flow | 4 | 12 | 0.338 |
fib_iter | 4 | 8 | 0.475 |
escape | 4 | 8 | 0.493 |
files | 4 | 4 | 0.941 |
varargs | 55 | 57 | 0.971 |
scoped_resource | 4 | 4 | 0.981 |
cgi | 4 | 4 | 0.993 |