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 | 173 | 0.000 |
fib_iter | 8 | 1,037 | 0.007 |
fib_recursive | 7 | 884 | 0.008 |
asdl_generated | 4 | 370 | 0.010 |
parse | 23 | 759 | 0.030 |
scoped_resource | 44 | 1,024 | 0.043 |
containers | 11 | 126 | 0.091 |
files | 8 | 72 | 0.107 |
tuple_return_value | 20 | 179 | 0.113 |
classes | 3 | 23 | 0.136 |
length | 41 | 205 | 0.199 |
cartesian | 82 | 329 | 0.249 |
escape | 94 | 348 | 0.271 |
cgi | 267 | 518 | 0.514 |
varargs | 12 | 15 | 0.810 |
control_flow | 208 | 101 | 2.051 |
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.9 | 0.41 |
parse | 3.7 | 7.6 | 0.48 |
escape | 3.5 | 7.1 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
loops | 3.5 | 6.9 | 0.51 |
modules | 3.5 | 6.9 | 0.51 |
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 |
length | 3.8 | 7.1 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
scoped_resource | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.8 | 0.58 |
containers | 28.3 | 47.8 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 8 | 0.000 |
control_flow | 0 | 12 | 0.000 |
fib_iter | 0 | 20 | 0.000 |
files | 0 | 4 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
modules | 2 | 12 | 0.151 |
containers | 4 | 8 | 0.483 |
cgi | 4 | 8 | 0.506 |
length | 4 | 8 | 0.516 |
asdl_generated | 7 | 12 | 0.600 |
parse | 8 | 12 | 0.625 |
loops | 4 | 4 | 0.899 |
varargs | 54 | 58 | 0.936 |
scoped_resource | 4 | 4 | 0.996 |
cartesian | 8 | 4 | 2.041 |
escape | 12 | 4 | 3.074 |
fib_recursive | 4 | 0 | inf |