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_iter | gen | 8 | 895 | 0.009 |
| fib_recursive | gen | 11 | 935 | 0.011 |
| loops | gen | 4 | 297 | 0.013 |
| asdl_generated | gen | 7 | 375 | 0.019 |
| scoped_resource | gen | 36 | 1,036 | 0.034 |
| parse | gen | 30 | 756 | 0.039 |
| containers | gen | 8 | 99 | 0.077 |
| files | gen | 7 | 72 | 0.102 |
| tuple_return_value | gen | 21 | 183 | 0.113 |
| classes | gen | 3 | 22 | 0.148 |
| length | gen | 41 | 210 | 0.196 |
| cartesian | gen | 74 | 333 | 0.222 |
| escape | gen | 99 | 352 | 0.280 |
| cgi | gen | 261 | 509 | 0.512 |
| varargs | gen | 20 | 16 | 1.216 |
| control_flow | gen | 210 | 108 | 1.936 |
| gc_stack_roots | gen | 2 | 0 | inf |
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.5 | 7.1 | 0.50 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| fib_recursive | gen | 3.5 | 6.9 | 0.51 |
| cartesian | gen | 3.5 | 6.8 | 0.52 |
| escape | gen | 3.5 | 6.8 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| control_flow | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| modules | gen | 3.8 | 7.1 | 0.54 |
| scoped_resource | gen | 3.8 | 7.1 | 0.54 |
| cgi | gen | 3.7 | 6.8 | 0.54 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| length | 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.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 9 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| parse | gen | 0 | 16 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| containers | gen | 8 | 40 | 0.192 |
| modules | gen | 2 | 8 | 0.236 |
| varargs | gen | 47 | 57 | 0.834 |
| asdl_generated | gen | 4 | 4 | 0.904 |
| length | gen | 4 | 4 | 0.929 |
| scoped_resource | gen | 12 | 8 | 1.488 |
| escape | gen | 8 | 4 | 2.054 |
| cartesian | gen | 16 | 4 | 4.101 |
| loops | gen | 0 | 0 | NA |