Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| fib_iter | 4 | 889 | 0.004 |
| modules | 2 | 174 | 0.012 |
| fib_recursive | 11 | 883 | 0.012 |
| loops | 4 | 285 | 0.013 |
| asdl_generated | 7 | 369 | 0.019 |
| scoped_resource | 39 | 1,078 | 0.036 |
| parse | 29 | 744 | 0.039 |
| files | 4 | 70 | 0.053 |
| containers | 8 | 107 | 0.072 |
| tuple_return_value | 20 | 193 | 0.104 |
| classes | 3 | 27 | 0.118 |
| length | 41 | 206 | 0.197 |
| cartesian | 86 | 358 | 0.239 |
| escape | 99 | 359 | 0.274 |
| cgi | 259 | 504 | 0.514 |
| varargs | 21 | 33 | 0.619 |
| control_flow | 207 | 108 | 1.913 |
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 |
| cgi | 3.5 | 7.1 | 0.50 |
| parse | 3.9 | 7.6 | 0.52 |
| asdl_generated | 3.7 | 7.1 | 0.52 |
| scoped_resource | 3.7 | 7.1 | 0.52 |
| escape | 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 |
| cartesian | 3.8 | 6.9 | 0.55 |
| length | 3.8 | 6.9 | 0.55 |
| loops | 3.9 | 7.1 | 0.56 |
| control_flow | 3.9 | 6.9 | 0.57 |
| files | 3.9 | 6.9 | 0.57 |
| containers | 28.4 | 47.8 | 0.59 |
| varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| classes | 0 | 4 | 0.000 |
| control_flow | 0 | 8 | 0.000 |
| fib_recursive | 0 | 8 | 0.000 |
| loops | 0 | 12 | 0.000 |
| modules | 0 | 12 | 0.000 |
| parse | 0 | 16 | 0.000 |
| tuple_return_value | 0 | 8 | 0.000 |
| containers | 8 | 28 | 0.279 |
| asdl_generated | 4 | 12 | 0.301 |
| fib_iter | 4 | 8 | 0.475 |
| files | 4 | 8 | 0.480 |
| scoped_resource | 8 | 8 | 0.982 |
| length | 4 | 4 | 1.002 |
| cgi | 8 | 8 | 1.011 |
| varargs | 45 | 37 | 1.211 |
| escape | 8 | 4 | 1.974 |
| cartesian | 4 | 0 | inf |