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 | 27 | 0.000 |
| fib_recursive | gen | 7 | 879 | 0.008 |
| fib_iter | gen | 7 | 902 | 0.008 |
| modules | gen | 2 | 180 | 0.010 |
| loops | gen | 4 | 299 | 0.012 |
| asdl_generated | gen | 11 | 374 | 0.029 |
| scoped_resource | gen | 35 | 1,018 | 0.035 |
| parse | gen | 29 | 796 | 0.036 |
| containers | gen | 8 | 88 | 0.086 |
| tuple_return_value | gen | 16 | 188 | 0.086 |
| files | gen | 7 | 67 | 0.111 |
| length | gen | 40 | 207 | 0.195 |
| gc_stack_roots | gen | 2 | 8 | 0.220 |
| cartesian | gen | 82 | 329 | 0.249 |
| escape | gen | 94 | 346 | 0.270 |
| cgi | gen | 270 | 526 | 0.514 |
| control_flow | gen | 210 | 106 | 1.986 |
| varargs | gen | 17 | 8 | 1.999 |
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 | 6.8 | 0.50 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| cartesian | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | 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 |
| scoped_resource | gen | 3.7 | 6.9 | 0.53 |
| tuple_return_value | gen | 3.7 | 6.9 | 0.53 |
| files | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| loops | gen | 3.9 | 7.1 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.5 | 47.8 | 0.59 |
| varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 8 | 0.000 |
| cgi | gen | 0 | 4 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| containers | gen | 8 | 44 | 0.171 |
| fib_recursive | gen | 4 | 8 | 0.446 |
| varargs | gen | 50 | 62 | 0.800 |
| classes | gen | 3 | 4 | 0.846 |
| scoped_resource | gen | 12 | 12 | 0.974 |
| tuple_return_value | gen | 4 | 4 | 1.009 |
| length | gen | 4 | 4 | 1.013 |
| escape | gen | 12 | 8 | 1.471 |
| cartesian | gen | 8 | 4 | 2.039 |
| fib_iter | gen | 0 | 0 | NA |
| loops | gen | 0 | 0 | NA |
| parse | gen | 0 | 0 | NA |