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 | 8 | 889 | 0.009 |
| modules | gen | 2 | 182 | 0.010 |
| fib_recursive | gen | 11 | 882 | 0.012 |
| loops | gen | 4 | 294 | 0.012 |
| asdl_generated | gen | 11 | 378 | 0.030 |
| parse | gen | 29 | 763 | 0.038 |
| containers | gen | 4 | 95 | 0.041 |
| scoped_resource | gen | 44 | 1,050 | 0.041 |
| tuple_return_value | gen | 16 | 190 | 0.085 |
| files | gen | 7 | 68 | 0.108 |
| classes | gen | 3 | 19 | 0.176 |
| length | gen | 37 | 209 | 0.176 |
| gc_stack_roots | gen | 2 | 8 | 0.226 |
| cartesian | gen | 87 | 325 | 0.267 |
| escape | gen | 108 | 349 | 0.310 |
| cgi | gen | 253 | 510 | 0.496 |
| varargs | gen | 31 | 28 | 1.110 |
| control_flow | gen | 211 | 128 | 1.652 |
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 |
| escape | gen | 3.4 | 7.1 | 0.48 |
| parse | gen | 3.8 | 7.7 | 0.49 |
| asdl_generated | gen | 3.5 | 7.1 | 0.50 |
| cartesian | 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 |
| fib_iter | gen | 3.7 | 7.1 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| modules | gen | 3.7 | 6.9 | 0.53 |
| tuple_return_value | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| length | gen | 3.7 | 6.8 | 0.54 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.5 | 47.8 | 0.59 |
| varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 4 | 0.000 |
| cgi | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 12 | 0.000 |
| control_flow | gen | 0 | 4 | 0.000 |
| escape | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 16 | 0.000 |
| containers | gen | 12 | 40 | 0.292 |
| cartesian | gen | 4 | 12 | 0.348 |
| varargs | gen | 35 | 44 | 0.795 |
| scoped_resource | gen | 4 | 4 | 0.988 |
| tuple_return_value | gen | 4 | 4 | 0.995 |
| length | gen | 8 | 0 | inf |
| modules | gen | 0 | 0 | NA |