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 |
| files | gen | 0 | 64 | 0.000 |
| loops | gen | 0 | 292 | 0.000 |
| fib_iter | gen | 8 | 891 | 0.009 |
| modules | gen | 2 | 179 | 0.010 |
| fib_recursive | gen | 11 | 876 | 0.012 |
| asdl_generated | gen | 11 | 384 | 0.028 |
| parse | gen | 29 | 778 | 0.038 |
| scoped_resource | gen | 42 | 1,034 | 0.041 |
| containers | gen | 8 | 113 | 0.070 |
| tuple_return_value | gen | 16 | 186 | 0.086 |
| length | gen | 41 | 205 | 0.201 |
| cartesian | gen | 76 | 325 | 0.233 |
| classes | gen | 3 | 11 | 0.282 |
| escape | gen | 99 | 348 | 0.285 |
| gc_stack_roots | gen | 2 | 4 | 0.428 |
| cgi | gen | 269 | 504 | 0.534 |
| varargs | gen | 16 | 16 | 1.001 |
| control_flow | gen | 209 | 108 | 1.930 |
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 |
| cartesian | gen | 3.5 | 7.1 | 0.50 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| asdl_generated | gen | 3.5 | 6.9 | 0.51 |
| cgi | gen | 3.5 | 6.9 | 0.51 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| escape | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.7 | 6.9 | 0.53 |
| fib_recursive | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
| files | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.8 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.5 | 47.8 | 0.60 |
| varargs | gen | 5.6 | 6.8 | 0.83 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 12 | 0.000 |
| classes | gen | 0 | 19 | 0.000 |
| control_flow | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 12 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| loops | gen | 4 | 12 | 0.306 |
| containers | gen | 8 | 24 | 0.326 |
| length | gen | 4 | 8 | 0.467 |
| tuple_return_value | gen | 4 | 8 | 0.508 |
| scoped_resource | gen | 4 | 8 | 0.531 |
| files | gen | 7 | 12 | 0.615 |
| varargs | gen | 52 | 56 | 0.929 |
| escape | gen | 8 | 8 | 1.005 |
| cartesian | gen | 16 | 4 | 4.023 |
| asdl_generated | gen | 0 | 0 | NA |