Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 4 | 891 | 0.004 |
| modules | gen | 2 | 171 | 0.012 |
| fib_recursive | gen | 11 | 895 | 0.012 |
| loops | gen | 4 | 294 | 0.014 |
| asdl_generated | gen | 7 | 370 | 0.020 |
| scoped_resource | gen | 36 | 1,029 | 0.035 |
| parse | gen | 31 | 779 | 0.039 |
| containers | gen | 7 | 125 | 0.052 |
| classes | gen | 3 | 31 | 0.105 |
| files | gen | 8 | 72 | 0.108 |
| tuple_return_value | gen | 21 | 183 | 0.114 |
| length | gen | 45 | 202 | 0.223 |
| cartesian | gen | 87 | 325 | 0.268 |
| escape | gen | 102 | 352 | 0.290 |
| varargs | gen | 4 | 8 | 0.518 |
| cgi | gen | 271 | 516 | 0.524 |
| control_flow | gen | 211 | 107 | 1.976 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
| example name | gen | C++ | Python | C++ : Python |
| classes | gen | 4.5 | 10.7 | 0.41 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| asdl_generated | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| cartesian | gen | 3.7 | 7.1 | 0.52 |
| escape | gen | 3.7 | 7.1 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.7 | 6.9 | 0.53 |
| modules | gen | 3.7 | 6.9 | 0.53 |
| tuple_return_value | gen | 3.7 | 6.9 | 0.53 |
| control_flow | gen | 3.8 | 6.9 | 0.55 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.5 | 47.8 | 0.60 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 12 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| length | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 12 | 0.000 |
| parse | gen | 0 | 4 | 0.000 |
| tuple_return_value | gen | 0 | 12 | 0.000 |
| gc_stack_roots | gen | 2 | 8 | 0.231 |
| asdl_generated | gen | 4 | 8 | 0.463 |
| cartesian | gen | 4 | 8 | 0.500 |
| containers | gen | 10 | 12 | 0.811 |
| fib_iter | gen | 4 | 4 | 0.956 |
| varargs | gen | 62 | 64 | 0.971 |
| scoped_resource | gen | 12 | 8 | 1.501 |
| escape | gen | 4 | 0 | inf |
| classes | gen | 0 | 0 | NA |
| fib_recursive | gen | 0 | 0 | NA |