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 | 4 | 0.000 |
| fib_iter | gen | 8 | 894 | 0.008 |
| modules | gen | 2 | 178 | 0.010 |
| fib_recursive | gen | 11 | 883 | 0.012 |
| loops | gen | 4 | 283 | 0.013 |
| asdl_generated | gen | 7 | 382 | 0.019 |
| parse | gen | 26 | 765 | 0.034 |
| scoped_resource | gen | 47 | 1,072 | 0.044 |
| files | gen | 4 | 76 | 0.051 |
| tuple_return_value | gen | 20 | 189 | 0.105 |
| containers | gen | 15 | 110 | 0.138 |
| length | gen | 41 | 199 | 0.206 |
| classes | gen | 3 | 15 | 0.210 |
| cartesian | gen | 83 | 331 | 0.250 |
| escape | gen | 103 | 348 | 0.296 |
| cgi | gen | 269 | 512 | 0.524 |
| varargs | gen | 33 | 20 | 1.642 |
| control_flow | gen | 210 | 106 | 1.977 |
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 |
| gc_stack_roots | gen | 3.4 | 7.1 | 0.48 |
| parse | gen | 3.8 | 7.5 | 0.51 |
| loops | gen | 3.5 | 6.9 | 0.51 |
| cartesian | gen | 3.5 | 6.8 | 0.52 |
| escape | gen | 3.5 | 6.8 | 0.52 |
| fib_recursive | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | 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 |
| asdl_generated | gen | 3.7 | 6.8 | 0.54 |
| cgi | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 7.1 | 0.56 |
| modules | gen | 3.9 | 7.1 | 0.56 |
| containers | gen | 28.5 | 47.6 | 0.60 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 4 | 0.000 |
| classes | gen | 0 | 15 | 0.000 |
| containers | gen | 0 | 24 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 12 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| scoped_resource | gen | 0 | 4 | 0.000 |
| tuple_return_value | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 2 | 8 | 0.223 |
| parse | gen | 4 | 8 | 0.458 |
| escape | gen | 4 | 8 | 0.496 |
| length | gen | 4 | 8 | 0.504 |
| varargs | gen | 33 | 52 | 0.631 |
| cartesian | gen | 8 | 4 | 2.072 |
| asdl_generated | gen | 4 | 0 | inf |
| files | gen | 4 | 0 | inf |