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 | 175 | 0.000 |
| fib_iter | 8 | 883 | 0.009 |
| fib_recursive | 11 | 890 | 0.012 |
| loops | 4 | 290 | 0.012 |
| parse | 21 | 768 | 0.027 |
| asdl_generated | 11 | 373 | 0.029 |
| scoped_resource | 38 | 1,034 | 0.037 |
| containers | 8 | 107 | 0.074 |
| tuple_return_value | 20 | 186 | 0.108 |
| files | 8 | 71 | 0.112 |
| classes | 3 | 27 | 0.119 |
| length | 37 | 197 | 0.187 |
| cartesian | 79 | 335 | 0.235 |
| escape | 102 | 344 | 0.295 |
| cgi | 264 | 524 | 0.504 |
| control_flow | 225 | 114 | 1.970 |
| varargs | 16 | 8 | 2.054 |
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.8 | 0.41 |
| parse | 3.8 | 7.6 | 0.50 |
| asdl_generated | 3.5 | 6.9 | 0.51 |
| cgi | 3.5 | 6.9 | 0.51 |
| escape | 3.5 | 6.9 | 0.51 |
| fib_iter | 3.5 | 6.9 | 0.51 |
| cartesian | 3.7 | 7.1 | 0.52 |
| length | 3.7 | 7.1 | 0.52 |
| scoped_resource | 3.7 | 6.9 | 0.53 |
| files | 3.8 | 6.9 | 0.55 |
| loops | 3.8 | 6.8 | 0.56 |
| fib_recursive | 3.9 | 6.9 | 0.57 |
| modules | 3.9 | 6.9 | 0.57 |
| control_flow | 3.9 | 6.8 | 0.58 |
| tuple_return_value | 3.9 | 6.8 | 0.58 |
| containers | 28.4 | 47.8 | 0.59 |
| varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| asdl_generated | 0 | 4 | 0.000 |
| classes | 0 | 4 | 0.000 |
| fib_iter | 0 | 8 | 0.000 |
| fib_recursive | 0 | 4 | 0.000 |
| files | 0 | 4 | 0.000 |
| loops | 0 | 8 | 0.000 |
| tuple_return_value | 0 | 12 | 0.000 |
| modules | 2 | 8 | 0.230 |
| containers | 8 | 28 | 0.286 |
| cgi | 4 | 8 | 0.500 |
| escape | 4 | 8 | 0.507 |
| scoped_resource | 8 | 12 | 0.703 |
| varargs | 49 | 64 | 0.770 |
| length | 7 | 8 | 0.916 |
| parse | 8 | 8 | 1.042 |
| cartesian | 12 | 0 | inf |
| control_flow | 0 | 0 | NA |