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 | 294 | 0.000 |
| fib_iter | gen | 8 | 883 | 0.009 |
| modules | gen | 2 | 181 | 0.010 |
| fib_recursive | gen | 11 | 886 | 0.012 |
| asdl_generated | gen | 7 | 382 | 0.019 |
| parse | gen | 30 | 758 | 0.039 |
| scoped_resource | gen | 48 | 1,035 | 0.046 |
| containers | gen | 8 | 123 | 0.064 |
| tuple_return_value | gen | 13 | 187 | 0.072 |
| files | gen | 7 | 67 | 0.111 |
| classes | gen | 3 | 23 | 0.141 |
| gc_stack_roots | gen | 2 | 12 | 0.149 |
| length | gen | 40 | 198 | 0.203 |
| cartesian | gen | 86 | 323 | 0.268 |
| escape | gen | 98 | 344 | 0.285 |
| cgi | gen | 270 | 510 | 0.529 |
| varargs | gen | 20 | 20 | 0.978 |
| control_flow | gen | 210 | 108 | 1.942 |
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.6 | 10.7 | 0.43 |
| gc_stack_roots | gen | 3.5 | 7.1 | 0.50 |
| cartesian | gen | 3.5 | 6.9 | 0.51 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| modules | gen | 3.7 | 6.9 | 0.53 |
| tuple_return_value | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.9 | 7.2 | 0.55 |
| control_flow | gen | 3.8 | 6.9 | 0.55 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.8 | 0.56 |
| fib_iter | gen | 3.9 | 6.9 | 0.57 |
| files | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.6 | 48.0 | 0.60 |
| varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 8 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 4 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 4 | 0.000 |
| scoped_resource | gen | 0 | 4 | 0.000 |
| loops | gen | 4 | 12 | 0.312 |
| length | gen | 4 | 12 | 0.339 |
| cartesian | gen | 4 | 8 | 0.493 |
| containers | gen | 8 | 16 | 0.495 |
| varargs | gen | 47 | 52 | 0.903 |
| escape | gen | 8 | 8 | 1.021 |
| tuple_return_value | gen | 7 | 4 | 1.688 |
| asdl_generated | gen | 4 | 0 | inf |
| gc_stack_roots | gen | 0 | 0 | NA |