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 |
| classes | gen | 0 | 19 | 0.000 |
| containers | gen | 0 | 113 | 0.000 |
| fib_iter | gen | 8 | 898 | 0.008 |
| modules | gen | 2 | 179 | 0.010 |
| fib_recursive | gen | 11 | 889 | 0.012 |
| loops | gen | 4 | 287 | 0.013 |
| asdl_generated | gen | 11 | 388 | 0.028 |
| parse | gen | 26 | 767 | 0.033 |
| scoped_resource | gen | 47 | 1,023 | 0.046 |
| files | gen | 8 | 72 | 0.106 |
| tuple_return_value | gen | 20 | 184 | 0.109 |
| length | gen | 41 | 211 | 0.195 |
| cartesian | gen | 82 | 333 | 0.247 |
| escape | gen | 103 | 343 | 0.301 |
| gc_stack_roots | gen | 2 | 4 | 0.440 |
| cgi | gen | 253 | 515 | 0.491 |
| varargs | gen | 23 | 16 | 1.479 |
| control_flow | gen | 206 | 105 | 1.957 |
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.3 | 10.7 | 0.40 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| cgi | gen | 3.5 | 7.1 | 0.50 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| modules | gen | 3.7 | 7.1 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| escape | gen | 3.7 | 6.9 | 0.53 |
| fib_recursive | gen | 3.7 | 6.9 | 0.53 |
| files | 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 |
| length | gen | 3.8 | 6.9 | 0.55 |
| loops | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.5 | 47.7 | 0.60 |
| varargs | gen | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 4 | 0.000 |
| cgi | gen | 0 | 4 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| scoped_resource | gen | 0 | 16 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| classes | gen | 3 | 11 | 0.281 |
| escape | gen | 4 | 12 | 0.332 |
| parse | gen | 4 | 8 | 0.458 |
| containers | gen | 15 | 23 | 0.657 |
| varargs | gen | 43 | 55 | 0.775 |
| length | gen | 4 | 4 | 1.011 |
| cartesian | gen | 12 | 0 | inf |