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 |
| loops | gen | 0 | 295 | 0.000 |
| modules | gen | 0 | 177 | 0.000 |
| fib_recursive | gen | 7 | 888 | 0.008 |
| fib_iter | gen | 8 | 889 | 0.009 |
| asdl_generated | gen | 5 | 378 | 0.014 |
| parse | gen | 29 | 747 | 0.039 |
| scoped_resource | gen | 48 | 1,020 | 0.047 |
| files | gen | 4 | 68 | 0.055 |
| tuple_return_value | gen | 13 | 192 | 0.070 |
| containers | gen | 12 | 104 | 0.113 |
| classes | gen | 3 | 15 | 0.214 |
| length | gen | 45 | 201 | 0.222 |
| cartesian | gen | 83 | 324 | 0.255 |
| escape | gen | 107 | 347 | 0.307 |
| gc_stack_roots | gen | 2 | 4 | 0.450 |
| cgi | gen | 269 | 516 | 0.521 |
| varargs | gen | 12 | 17 | 0.696 |
| control_flow | gen | 208 | 105 | 1.983 |
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 | 7.1 | 0.48 |
| fib_iter | gen | 3.4 | 6.9 | 0.49 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| scoped_resource | gen | 3.5 | 7.1 | 0.50 |
| cartesian | gen | 3.5 | 6.9 | 0.51 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| asdl_generated | gen | 3.7 | 7.1 | 0.52 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| control_flow | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.7 | 6.9 | 0.53 |
| modules | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.5 | 47.8 | 0.60 |
| varargs | gen | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 4 | 0.000 |
| classes | gen | 0 | 15 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| escape | gen | 0 | 12 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| length | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 16 | 0.000 |
| scoped_resource | gen | 0 | 8 | 0.000 |
| containers | gen | 4 | 32 | 0.122 |
| modules | gen | 2 | 4 | 0.449 |
| files | gen | 4 | 8 | 0.469 |
| loops | gen | 3 | 4 | 0.732 |
| cartesian | gen | 8 | 8 | 0.983 |
| varargs | gen | 54 | 54 | 0.999 |
| asdl_generated | gen | 5 | 4 | 1.347 |
| fib_recursive | gen | 4 | 0 | inf |
| tuple_return_value | gen | 7 | 0 | inf |