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 | 290 | 0.000 |
fib_iter | 8 | 889 | 0.008 |
modules | 2 | 173 | 0.010 |
fib_recursive | 11 | 888 | 0.012 |
asdl_generated | 7 | 373 | 0.019 |
scoped_resource | 40 | 1,042 | 0.039 |
parse | 30 | 765 | 0.039 |
files | 4 | 65 | 0.060 |
containers | 8 | 112 | 0.068 |
tuple_return_value | 16 | 181 | 0.089 |
classes | 3 | 22 | 0.149 |
length | 40 | 206 | 0.194 |
escape | 93 | 352 | 0.265 |
cartesian | 91 | 334 | 0.272 |
cgi | 269 | 504 | 0.533 |
varargs | 21 | 16 | 1.295 |
control_flow | 210 | 106 | 1.989 |
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 |
parse | 3.8 | 7.5 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
length | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
tuple_return_value | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
cgi | 0 | 12 | 0.000 |
classes | 0 | 9 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 12 | 0.000 |
tuple_return_value | 4 | 12 | 0.340 |
files | 4 | 12 | 0.341 |
containers | 8 | 20 | 0.380 |
asdl_generated | 4 | 8 | 0.448 |
loops | 4 | 8 | 0.465 |
scoped_resource | 8 | 12 | 0.672 |
varargs | 45 | 56 | 0.814 |
length | 4 | 4 | 0.989 |
escape | 12 | 4 | 3.041 |