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 | 293 | 0.000 |
| fib_iter | 8 | 895 | 0.008 |
| modules | 2 | 169 | 0.010 |
| fib_recursive | 11 | 873 | 0.012 |
| asdl_generated | 7 | 375 | 0.019 |
| parse | 29 | 790 | 0.037 |
| scoped_resource | 47 | 1,053 | 0.044 |
| containers | 7 | 125 | 0.059 |
| tuple_return_value | 16 | 179 | 0.090 |
| files | 8 | 63 | 0.120 |
| classes | 4 | 23 | 0.155 |
| length | 40 | 204 | 0.195 |
| cartesian | 86 | 333 | 0.258 |
| escape | 99 | 347 | 0.285 |
| cgi | 265 | 523 | 0.506 |
| varargs | 19 | 20 | 0.983 |
| control_flow | 201 | 114 | 1.771 |
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.7 | 0.49 |
| cartesian | 3.5 | 6.9 | 0.51 |
| cgi | 3.5 | 6.9 | 0.51 |
| escape | 3.5 | 6.9 | 0.51 |
| fib_recursive | 3.5 | 6.9 | 0.51 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| fib_iter | 3.7 | 6.9 | 0.53 |
| length | 3.7 | 6.9 | 0.53 |
| scoped_resource | 3.8 | 7.1 | 0.54 |
| files | 3.8 | 6.9 | 0.55 |
| loops | 3.8 | 6.9 | 0.55 |
| modules | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| control_flow | 3.9 | 6.9 | 0.57 |
| containers | 28.7 | 47.8 | 0.60 |
| varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| classes | 0 | 8 | 0.000 |
| fib_iter | 0 | 8 | 0.000 |
| fib_recursive | 0 | 8 | 0.000 |
| files | 0 | 12 | 0.000 |
| modules | 0 | 12 | 0.000 |
| parse | 0 | 4 | 0.000 |
| scoped_resource | 0 | 12 | 0.000 |
| tuple_return_value | 4 | 12 | 0.337 |
| length | 4 | 8 | 0.498 |
| asdl_generated | 4 | 4 | 0.893 |
| varargs | 47 | 51 | 0.907 |
| containers | 7 | 8 | 0.920 |
| escape | 8 | 8 | 0.993 |
| cartesian | 4 | 0 | inf |
| cgi | 4 | 0 | inf |
| control_flow | 8 | 0 | inf |
| loops | 4 | 0 | inf |