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 |
| fib_iter | gen | 4 | 894 | 0.004 |
| modules | gen | 2 | 177 | 0.010 |
| fib_recursive | gen | 11 | 887 | 0.012 |
| loops | gen | 4 | 297 | 0.012 |
| asdl_generated | gen | 11 | 382 | 0.029 |
| parse | gen | 29 | 766 | 0.038 |
| scoped_resource | gen | 42 | 1,036 | 0.041 |
| tuple_return_value | gen | 20 | 193 | 0.104 |
| files | gen | 8 | 70 | 0.109 |
| containers | gen | 11 | 101 | 0.112 |
| classes | gen | 3 | 23 | 0.140 |
| cartesian | gen | 82 | 375 | 0.220 |
| length | gen | 45 | 202 | 0.222 |
| varargs | gen | 8 | 28 | 0.297 |
| escape | gen | 107 | 346 | 0.309 |
| cgi | gen | 265 | 564 | 0.470 |
| control_flow | gen | 213 | 104 | 2.053 |
| gc_stack_roots | gen | 2 | 0 | inf |
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.6 | 10.6 | 0.43 |
| fib_iter | gen | 3.4 | 7.1 | 0.48 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| cartesian | gen | 3.5 | 6.9 | 0.51 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| 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.8 | 7.1 | 0.54 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| asdl_generated | gen | 3.7 | 6.8 | 0.54 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.4 | 48.0 | 0.59 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 4 | 0.000 |
| classes | gen | 0 | 8 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| escape | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| length | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 12 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| containers | gen | 4 | 32 | 0.117 |
| cgi | gen | 4 | 8 | 0.494 |
| scoped_resource | gen | 4 | 8 | 0.529 |
| cartesian | gen | 8 | 8 | 0.983 |
| varargs | gen | 58 | 44 | 1.323 |
| fib_iter | gen | 4 | 0 | inf |