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 | 22 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 173 | 0.000 |
| fib_iter | gen | 4 | 904 | 0.004 |
| fib_recursive | gen | 11 | 891 | 0.012 |
| loops | gen | 4 | 293 | 0.013 |
| asdl_generated | gen | 7 | 382 | 0.019 |
| parse | gen | 29 | 781 | 0.037 |
| scoped_resource | gen | 51 | 1,044 | 0.049 |
| containers | gen | 8 | 107 | 0.072 |
| tuple_return_value | gen | 20 | 196 | 0.103 |
| files | gen | 7 | 72 | 0.104 |
| length | gen | 33 | 205 | 0.163 |
| cartesian | gen | 74 | 368 | 0.203 |
| escape | gen | 99 | 339 | 0.294 |
| cgi | gen | 250 | 513 | 0.487 |
| varargs | gen | 12 | 16 | 0.735 |
| control_flow | gen | 212 | 106 | 1.991 |
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 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| files | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cartesian | 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 |
| cgi | gen | 3.5 | 6.7 | 0.53 |
| fib_iter | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
| escape | gen | 3.7 | 6.8 | 0.54 |
| loops | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.9 | 7.1 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.4 | 47.7 | 0.60 |
| varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 4 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| scoped_resource | gen | 0 | 8 | 0.000 |
| modules | gen | 2 | 8 | 0.241 |
| containers | gen | 8 | 32 | 0.244 |
| classes | gen | 3 | 9 | 0.368 |
| gc_stack_roots | gen | 2 | 4 | 0.448 |
| fib_iter | gen | 4 | 8 | 0.475 |
| asdl_generated | gen | 4 | 4 | 0.888 |
| varargs | gen | 55 | 56 | 0.980 |
| escape | gen | 8 | 8 | 0.998 |
| cgi | gen | 4 | 4 | 1.006 |
| length | gen | 11 | 4 | 2.766 |
| cartesian | gen | 16 | 0 | inf |
| tuple_return_value | gen | 0 | 0 | NA |