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 | 22 | 0.000 |
| loops | gen | 0 | 289 | 0.000 |
| fib_iter | gen | 8 | 886 | 0.009 |
| modules | gen | 2 | 186 | 0.010 |
| fib_recursive | gen | 11 | 879 | 0.013 |
| asdl_generated | gen | 7 | 369 | 0.020 |
| parse | gen | 23 | 757 | 0.030 |
| scoped_resource | gen | 48 | 1,024 | 0.047 |
| tuple_return_value | gen | 16 | 192 | 0.085 |
| files | gen | 8 | 71 | 0.109 |
| containers | gen | 12 | 108 | 0.109 |
| length | gen | 26 | 203 | 0.129 |
| cartesian | gen | 75 | 328 | 0.229 |
| escape | gen | 97 | 349 | 0.279 |
| gc_stack_roots | gen | 2 | 4 | 0.444 |
| cgi | gen | 257 | 511 | 0.503 |
| varargs | gen | 20 | 16 | 1.210 |
| control_flow | gen | 205 | 106 | 1.943 |
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 |
| parse | gen | 3.9 | 7.7 | 0.51 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| fib_recursive | gen | 3.5 | 6.9 | 0.51 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| asdl_generated | gen | 3.5 | 6.8 | 0.52 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| scoped_resource | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.9 | 7.1 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| length | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.4 | 47.8 | 0.59 |
| varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| fib_iter | gen | 0 | 12 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| scoped_resource | gen | 0 | 12 | 0.000 |
| containers | gen | 4 | 28 | 0.141 |
| classes | gen | 3 | 9 | 0.369 |
| asdl_generated | gen | 4 | 8 | 0.458 |
| control_flow | gen | 4 | 8 | 0.504 |
| loops | gen | 4 | 8 | 0.519 |
| parse | gen | 8 | 12 | 0.627 |
| varargs | gen | 47 | 57 | 0.830 |
| tuple_return_value | gen | 4 | 4 | 1.018 |
| escape | gen | 8 | 4 | 2.045 |
| length | gen | 19 | 8 | 2.358 |
| cartesian | gen | 16 | 4 | 3.956 |
| cgi | gen | 0 | 0 | NA |
| modules | gen | 0 | 0 | NA |