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 |
| modules | gen | 0 | 174 | 0.000 |
| fib_recursive | gen | 7 | 884 | 0.008 |
| fib_iter | gen | 8 | 891 | 0.009 |
| loops | gen | 4 | 292 | 0.013 |
| asdl_generated | gen | 11 | 379 | 0.029 |
| parse | gen | 29 | 765 | 0.038 |
| scoped_resource | gen | 44 | 1,041 | 0.042 |
| files | gen | 4 | 72 | 0.052 |
| containers | gen | 8 | 99 | 0.078 |
| tuple_return_value | gen | 20 | 189 | 0.107 |
| length | gen | 41 | 205 | 0.199 |
| classes | gen | 3 | 16 | 0.208 |
| gc_stack_roots | gen | 2 | 8 | 0.223 |
| cartesian | gen | 87 | 315 | 0.277 |
| escape | gen | 103 | 345 | 0.298 |
| cgi | gen | 265 | 508 | 0.523 |
| varargs | gen | 31 | 24 | 1.297 |
| control_flow | gen | 210 | 110 | 1.913 |
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.6 | 0.42 |
| parse | gen | 3.7 | 7.6 | 0.48 |
| cartesian | gen | 3.5 | 7.1 | 0.50 |
| gc_stack_roots | gen | 3.5 | 7.1 | 0.50 |
| scoped_resource | gen | 3.5 | 7.1 | 0.50 |
| asdl_generated | gen | 3.5 | 6.9 | 0.51 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| loops | gen | 3.7 | 7.1 | 0.52 |
| files | gen | 3.5 | 6.8 | 0.52 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.7 | 6.9 | 0.53 |
| fib_recursive | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.8 | 7.1 | 0.54 |
| modules | gen | 3.8 | 7.1 | 0.54 |
| control_flow | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.5 | 47.7 | 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 | 4 | 0.000 |
| classes | gen | 0 | 16 | 0.000 |
| control_flow | gen | 0 | 12 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 12 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| modules | gen | 2 | 12 | 0.153 |
| containers | gen | 8 | 36 | 0.216 |
| scoped_resource | gen | 4 | 16 | 0.248 |
| escape | gen | 4 | 12 | 0.332 |
| cartesian | gen | 4 | 12 | 0.347 |
| fib_recursive | gen | 4 | 8 | 0.451 |
| cgi | gen | 4 | 8 | 0.503 |
| varargs | gen | 35 | 48 | 0.729 |
| files | gen | 4 | 4 | 0.930 |
| length | gen | 4 | 4 | 1.016 |