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 | 888 | 0.009 |
| modules | gen | 2 | 180 | 0.010 |
| fib_recursive | gen | 11 | 876 | 0.012 |
| loops | gen | 4 | 293 | 0.012 |
| asdl_generated | gen | 11 | 373 | 0.029 |
| parse | gen | 25 | 773 | 0.032 |
| scoped_resource | gen | 47 | 1,021 | 0.046 |
| containers | gen | 8 | 105 | 0.076 |
| tuple_return_value | gen | 20 | 203 | 0.100 |
| files | gen | 7 | 68 | 0.110 |
| classes | gen | 3 | 19 | 0.167 |
| length | gen | 40 | 201 | 0.200 |
| cartesian | gen | 87 | 336 | 0.258 |
| escape | gen | 102 | 348 | 0.295 |
| cgi | gen | 257 | 510 | 0.504 |
| varargs | gen | 16 | 12 | 1.308 |
| control_flow | gen | 205 | 106 | 1.924 |
| 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.5 | 10.8 | 0.41 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| parse | gen | 3.8 | 7.7 | 0.49 |
| cgi | gen | 3.5 | 6.9 | 0.51 |
| modules | gen | 3.5 | 6.9 | 0.51 |
| 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.8 | 7.1 | 0.54 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| fib_iter | 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.6 | 47.8 | 0.60 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 12 | 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 | 12 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 8 | 0.000 |
| scoped_resource | gen | 0 | 12 | 0.000 |
| containers | gen | 8 | 32 | 0.247 |
| length | gen | 4 | 8 | 0.499 |
| control_flow | gen | 4 | 8 | 0.509 |
| escape | gen | 4 | 8 | 0.513 |
| varargs | gen | 51 | 60 | 0.850 |
| cartesian | gen | 4 | 4 | 0.984 |
| parse | gen | 4 | 4 | 1.045 |
| cgi | gen | 12 | 4 | 2.998 |
| tuple_return_value | gen | 0 | 0 | NA |