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 | 896 | 0.004 |
| fib_recursive | 7 | 878 | 0.008 |
| asdl_generated | 4 | 373 | 0.010 |
| modules | 2 | 178 | 0.011 |
| loops | 4 | 290 | 0.013 |
| scoped_resource | 39 | 1,034 | 0.038 |
| parse | 29 | 760 | 0.039 |
| containers | 8 | 105 | 0.073 |
| classes | 3 | 31 | 0.101 |
| files | 7 | 72 | 0.102 |
| tuple_return_value | 20 | 185 | 0.108 |
| length | 44 | 203 | 0.218 |
| cartesian | 92 | 327 | 0.281 |
| escape | 102 | 358 | 0.286 |
| cgi | 249 | 507 | 0.491 |
| varargs | 15 | 8 | 1.940 |
| control_flow | 210 | 107 | 1.971 |
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.42 |
| parse | 3.9 | 7.7 | 0.51 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| cartesian | 3.7 | 6.9 | 0.53 |
| cgi | 3.7 | 6.9 | 0.53 |
| escape | 3.7 | 6.9 | 0.53 |
| length | 3.7 | 6.9 | 0.53 |
| scoped_resource | 3.8 | 7.1 | 0.54 |
| control_flow | 3.8 | 6.9 | 0.55 |
| fib_iter | 3.8 | 6.9 | 0.55 |
| fib_recursive | 3.8 | 6.9 | 0.55 |
| files | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| loops | 3.9 | 7.1 | 0.56 |
| modules | 3.9 | 6.9 | 0.57 |
| containers | 28.5 | 47.8 | 0.60 |
| varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| control_flow | 0 | 8 | 0.000 |
| files | 0 | 4 | 0.000 |
| length | 0 | 8 | 0.000 |
| loops | 0 | 4 | 0.000 |
| modules | 0 | 4 | 0.000 |
| parse | 0 | 12 | 0.000 |
| tuple_return_value | 0 | 8 | 0.000 |
| containers | 8 | 28 | 0.272 |
| cartesian | 4 | 8 | 0.501 |
| cgi | 4 | 8 | 0.503 |
| asdl_generated | 7 | 12 | 0.616 |
| varargs | 50 | 64 | 0.788 |
| fib_recursive | 4 | 4 | 0.898 |
| scoped_resource | 8 | 4 | 1.941 |
| escape | 4 | 0 | inf |
| fib_iter | 4 | 0 | inf |
| classes | 0 | 0 | NA |