Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
modules | 0 | 175 | 0.000 |
fib_iter | 8 | 892 | 0.008 |
fib_recursive | 11 | 892 | 0.012 |
loops | 4 | 300 | 0.013 |
asdl_generated | 11 | 381 | 0.029 |
parse | 22 | 762 | 0.029 |
containers | 4 | 125 | 0.032 |
scoped_resource | 48 | 1,084 | 0.044 |
files | 8 | 77 | 0.099 |
tuple_return_value | 20 | 182 | 0.111 |
classes | 4 | 23 | 0.150 |
length | 45 | 207 | 0.216 |
cartesian | 77 | 334 | 0.232 |
varargs | 8 | 28 | 0.297 |
escape | 115 | 342 | 0.336 |
cgi | 269 | 522 | 0.515 |
control_flow | 211 | 111 | 1.900 |
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.7 | 0.41 |
escape | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
scoped_resource | 3.5 | 7.1 | 0.50 |
cgi | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 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 |
loops | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
containers | 28.7 | 47.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 4 | 0.000 |
cgi | 0 | 8 | 0.000 |
classes | 0 | 8 | 0.000 |
control_flow | 0 | 4 | 0.000 |
escape | 0 | 12 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
length | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
scoped_resource | 0 | 4 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
modules | 2 | 8 | 0.222 |
containers | 12 | 12 | 0.990 |
varargs | 58 | 44 | 1.323 |
parse | 7 | 4 | 1.855 |
cartesian | 12 | 4 | 2.924 |
files | 0 | 0 | NA |