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 |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 4 | 884 | 0.004 |
| modules | gen | 2 | 167 | 0.011 |
| fib_recursive | gen | 11 | 891 | 0.012 |
| loops | gen | 4 | 303 | 0.014 |
| asdl_generated | gen | 7 | 390 | 0.019 |
| parse | gen | 26 | 767 | 0.033 |
| scoped_resource | gen | 47 | 1,071 | 0.044 |
| files | gen | 7 | 79 | 0.095 |
| containers | gen | 12 | 116 | 0.105 |
| tuple_return_value | gen | 20 | 191 | 0.106 |
| classes | gen | 4 | 23 | 0.157 |
| length | gen | 41 | 207 | 0.199 |
| cartesian | gen | 82 | 334 | 0.245 |
| escape | gen | 103 | 350 | 0.295 |
| varargs | gen | 8 | 20 | 0.393 |
| cgi | gen | 265 | 504 | 0.526 |
| control_flow | gen | 208 | 110 | 1.901 |
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.3 | 10.7 | 0.40 |
| gc_stack_roots | gen | 3.5 | 7.1 | 0.50 |
| cartesian | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| escape | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| files | gen | 3.7 | 6.8 | 0.54 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| cgi | gen | 3.7 | 6.7 | 0.55 |
| fib_recursive | gen | 3.9 | 7.1 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| 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 |
| classes | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 16 | 0.000 |
| scoped_resource | gen | 0 | 12 | 0.000 |
| tuple_return_value | gen | 0 | 4 | 0.000 |
| containers | gen | 4 | 20 | 0.203 |
| gc_stack_roots | gen | 2 | 8 | 0.231 |
| parse | gen | 4 | 8 | 0.458 |
| cgi | gen | 4 | 8 | 0.502 |
| asdl_generated | gen | 4 | 4 | 0.904 |
| fib_iter | gen | 4 | 4 | 0.969 |
| control_flow | gen | 4 | 4 | 0.987 |
| escape | gen | 4 | 4 | 0.988 |
| varargs | gen | 59 | 52 | 1.134 |
| cartesian | gen | 8 | 4 | 2.037 |
| length | gen | 4 | 0 | inf |
| loops | gen | 0 | 0 | NA |