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 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| loops | gen | 0 | 294 | 0.000 |
| fib_iter | gen | 8 | 881 | 0.009 |
| modules | gen | 2 | 176 | 0.010 |
| fib_recursive | gen | 11 | 957 | 0.011 |
| asdl_generated | gen | 5 | 376 | 0.014 |
| parse | gen | 29 | 758 | 0.038 |
| scoped_resource | gen | 43 | 1,033 | 0.041 |
| files | gen | 4 | 72 | 0.051 |
| containers | gen | 12 | 130 | 0.094 |
| tuple_return_value | gen | 20 | 182 | 0.110 |
| classes | gen | 3 | 28 | 0.115 |
| length | gen | 45 | 201 | 0.223 |
| cartesian | gen | 78 | 330 | 0.236 |
| escape | gen | 103 | 348 | 0.296 |
| cgi | gen | 269 | 499 | 0.538 |
| varargs | gen | 25 | 20 | 1.243 |
| control_flow | gen | 201 | 105 | 1.909 |
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 |
| cartesian | gen | 3.5 | 6.9 | 0.51 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| modules | gen | 3.5 | 6.9 | 0.51 |
| tuple_return_value | gen | 3.5 | 6.9 | 0.51 |
| escape | gen | 3.7 | 7.1 | 0.52 |
| length | gen | 3.7 | 7.1 | 0.52 |
| loops | gen | 3.7 | 7.1 | 0.52 |
| fib_recursive | gen | 3.5 | 6.8 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| scoped_resource | gen | 3.8 | 7.1 | 0.54 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| files | 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.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 12 | 0.000 |
| classes | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 4 | 0.000 |
| length | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 8 | 0.000 |
| parse | gen | 0 | 12 | 0.000 |
| tuple_return_value | gen | 0 | 12 | 0.000 |
| containers | gen | 4 | 20 | 0.201 |
| scoped_resource | gen | 4 | 12 | 0.325 |
| asdl_generated | gen | 5 | 8 | 0.671 |
| varargs | gen | 42 | 52 | 0.797 |
| loops | gen | 4 | 4 | 0.914 |
| files | gen | 4 | 4 | 0.925 |
| control_flow | gen | 8 | 8 | 0.973 |
| escape | gen | 4 | 4 | 0.990 |
| cartesian | gen | 12 | 4 | 3.060 |
| gc_stack_roots | gen | 2 | 0 | inf |