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 | 173 | 0.000 |
fib_iter | 8 | 893 | 0.009 |
fib_recursive | 11 | 923 | 0.012 |
loops | 4 | 295 | 0.013 |
asdl_generated | 7 | 368 | 0.020 |
parse | 26 | 780 | 0.034 |
scoped_resource | 47 | 1,043 | 0.045 |
files | 4 | 72 | 0.052 |
containers | 7 | 119 | 0.055 |
tuple_return_value | 20 | 190 | 0.106 |
classes | 3 | 22 | 0.147 |
length | 37 | 204 | 0.180 |
cartesian | 86 | 361 | 0.239 |
escape | 99 | 346 | 0.285 |
cgi | 258 | 548 | 0.470 |
varargs | 16 | 15 | 1.022 |
control_flow | 206 | 103 | 2.011 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.8 | 0.40 |
parse | 3.8 | 7.6 | 0.50 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
scoped_resource | 3.7 | 7.1 | 0.52 |
cgi | 3.5 | 6.8 | 0.52 |
escape | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
control_flow | 3.8 | 7.1 | 0.54 |
fib_iter | 3.8 | 7.1 | 0.54 |
loops | 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 |
containers | 28.5 | 47.8 | 0.59 |
varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 9 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
scoped_resource | 0 | 4 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
modules | 2 | 12 | 0.152 |
asdl_generated | 4 | 12 | 0.301 |
control_flow | 4 | 12 | 0.335 |
parse | 4 | 8 | 0.469 |
containers | 10 | 16 | 0.597 |
escape | 8 | 12 | 0.662 |
varargs | 51 | 57 | 0.886 |
files | 4 | 4 | 0.930 |
cgi | 8 | 8 | 0.992 |
cartesian | 4 | 4 | 1.024 |
length | 8 | 4 | 2.044 |