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 | 182 | 0.000 |
| fib_iter | 8 | 899 | 0.008 |
| asdl_generated | 4 | 374 | 0.010 |
| fib_recursive | 11 | 889 | 0.012 |
| loops | 4 | 293 | 0.013 |
| scoped_resource | 39 | 1,034 | 0.038 |
| parse | 30 | 770 | 0.038 |
| tuple_return_value | 13 | 193 | 0.070 |
| containers | 8 | 103 | 0.077 |
| files | 7 | 67 | 0.111 |
| length | 41 | 202 | 0.202 |
| cartesian | 69 | 341 | 0.204 |
| classes | 3 | 15 | 0.217 |
| escape | 106 | 347 | 0.307 |
| varargs | 15 | 31 | 0.501 |
| cgi | 265 | 517 | 0.513 |
| control_flow | 205 | 108 | 1.906 |
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 |
| cgi | 3.5 | 6.9 | 0.51 |
| escape | 3.7 | 7.1 | 0.52 |
| loops | 3.7 | 7.1 | 0.52 |
| cartesian | 3.7 | 6.9 | 0.53 |
| modules | 3.7 | 6.9 | 0.53 |
| scoped_resource | 3.8 | 7.1 | 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.4 | 7.1 | 0.76 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| classes | 0 | 15 | 0.000 |
| fib_iter | 0 | 4 | 0.000 |
| fib_recursive | 0 | 8 | 0.000 |
| files | 0 | 8 | 0.000 |
| loops | 0 | 4 | 0.000 |
| parse | 0 | 16 | 0.000 |
| modules | 2 | 8 | 0.232 |
| containers | 8 | 32 | 0.249 |
| escape | 4 | 8 | 0.494 |
| control_flow | 4 | 8 | 0.504 |
| length | 4 | 8 | 0.515 |
| asdl_generated | 7 | 8 | 0.902 |
| varargs | 50 | 42 | 1.185 |
| cartesian | 20 | 4 | 5.095 |
| scoped_resource | 8 | 0 | inf |
| tuple_return_value | 7 | 0 | inf |
| cgi | 0 | 0 | NA |