Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
loops | 0 | 293 | 0.000 |
modules | 0 | 182 | 0.000 |
fib_iter | 8 | 904 | 0.008 |
fib_recursive | 11 | 883 | 0.012 |
asdl_generated | 11 | 378 | 0.028 |
containers | 4 | 114 | 0.036 |
scoped_resource | 38 | 1,036 | 0.037 |
parse | 30 | 775 | 0.038 |
files | 4 | 68 | 0.061 |
tuple_return_value | 20 | 185 | 0.109 |
classes | 3 | 24 | 0.138 |
length | 44 | 203 | 0.217 |
cartesian | 79 | 325 | 0.243 |
escape | 104 | 353 | 0.295 |
cgi | 255 | 512 | 0.497 |
varargs | 8 | 12 | 0.649 |
control_flow | 206 | 112 | 1.832 |
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 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
modules | 3.5 | 6.9 | 0.51 |
parse | 3.9 | 7.6 | 0.52 |
escape | 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 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.9 | 6.9 | 0.57 |
containers | 28.6 | 47.8 | 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 | 4 | 0.000 |
classes | 0 | 8 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
length | 0 | 8 | 0.000 |
parse | 0 | 4 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
loops | 4 | 12 | 0.313 |
modules | 2 | 4 | 0.460 |
files | 4 | 8 | 0.519 |
containers | 12 | 24 | 0.527 |
varargs | 59 | 61 | 0.974 |
scoped_resource | 9 | 4 | 2.137 |
cartesian | 12 | 4 | 2.949 |
escape | 4 | 0 | inf |
fib_recursive | 0 | 0 | NA |