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 | 292 | 0.000 |
| fib_iter | 8 | 890 | 0.009 |
| modules | 2 | 189 | 0.010 |
| fib_recursive | 11 | 890 | 0.012 |
| parse | 21 | 805 | 0.026 |
| asdl_generated | 11 | 379 | 0.029 |
| scoped_resource | 47 | 1,042 | 0.045 |
| containers | 8 | 103 | 0.075 |
| files | 8 | 75 | 0.100 |
| tuple_return_value | 20 | 192 | 0.107 |
| length | 40 | 204 | 0.197 |
| cartesian | 83 | 324 | 0.256 |
| escape | 103 | 366 | 0.281 |
| classes | 3 | 12 | 0.293 |
| cgi | 266 | 515 | 0.517 |
| varargs | 16 | 24 | 0.650 |
| control_flow | 207 | 108 | 1.907 |
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.6 | 0.42 |
| parse | 3.8 | 7.6 | 0.50 |
| asdl_generated | 3.5 | 6.9 | 0.51 |
| cartesian | 3.7 | 7.1 | 0.52 |
| escape | 3.7 | 7.1 | 0.52 |
| loops | 3.7 | 7.1 | 0.52 |
| modules | 3.7 | 7.1 | 0.52 |
| scoped_resource | 3.7 | 7.1 | 0.52 |
| cgi | 3.7 | 6.8 | 0.54 |
| control_flow | 3.8 | 6.9 | 0.55 |
| fib_recursive | 3.8 | 6.9 | 0.55 |
| files | 3.8 | 6.9 | 0.55 |
| length | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| fib_iter | 3.9 | 6.9 | 0.57 |
| containers | 28.5 | 47.8 | 0.60 |
| varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| asdl_generated | 0 | 8 | 0.000 |
| classes | 0 | 19 | 0.000 |
| control_flow | 0 | 4 | 0.000 |
| fib_iter | 0 | 8 | 0.000 |
| modules | 0 | 4 | 0.000 |
| scoped_resource | 0 | 4 | 0.000 |
| tuple_return_value | 0 | 8 | 0.000 |
| containers | 8 | 32 | 0.245 |
| cgi | 4 | 8 | 0.497 |
| escape | 4 | 8 | 0.517 |
| length | 4 | 4 | 1.003 |
| loops | 4 | 4 | 1.028 |
| varargs | 51 | 48 | 1.056 |
| cartesian | 8 | 4 | 1.974 |
| parse | 8 | 4 | 2.087 |
| fib_recursive | 0 | 0 | NA |
| files | 0 | 0 | NA |