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 |
| classes | gen | 0 | 28 | 0.000 |
| fib_iter | gen | 4 | 881 | 0.004 |
| modules | gen | 2 | 177 | 0.010 |
| fib_recursive | gen | 11 | 874 | 0.013 |
| loops | gen | 4 | 289 | 0.013 |
| asdl_generated | gen | 11 | 370 | 0.029 |
| parse | gen | 29 | 772 | 0.037 |
| scoped_resource | gen | 43 | 1,054 | 0.041 |
| containers | gen | 8 | 104 | 0.076 |
| tuple_return_value | gen | 16 | 192 | 0.084 |
| files | gen | 7 | 68 | 0.109 |
| length | gen | 41 | 204 | 0.202 |
| cartesian | gen | 86 | 336 | 0.256 |
| escape | gen | 102 | 351 | 0.292 |
| gc_stack_roots | gen | 2 | 4 | 0.459 |
| cgi | gen | 265 | 506 | 0.523 |
| varargs | gen | 23 | 20 | 1.169 |
| control_flow | gen | 210 | 115 | 1.824 |
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 |
| parse | gen | 3.9 | 7.7 | 0.51 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| 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 |
| gc_stack_roots | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| scoped_resource | gen | 3.8 | 7.1 | 0.54 |
| escape | 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 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| modules | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.7 | 47.8 | 0.60 |
| varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 12 | 0.000 |
| control_flow | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 8 | 0.000 |
| parse | gen | 0 | 12 | 0.000 |
| containers | gen | 8 | 36 | 0.218 |
| fib_iter | gen | 4 | 12 | 0.319 |
| cgi | gen | 4 | 12 | 0.335 |
| scoped_resource | gen | 4 | 8 | 0.489 |
| cartesian | gen | 4 | 8 | 0.512 |
| classes | gen | 3 | 4 | 0.819 |
| varargs | gen | 43 | 52 | 0.824 |
| escape | gen | 4 | 4 | 0.987 |
| tuple_return_value | gen | 4 | 4 | 1.008 |
| length | gen | 4 | 4 | 1.031 |