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 | 23 | 0.000 |
| gc_stack_roots | gen | 0 | 3 | 0.000 |
| fib_iter | gen | 8 | 889 | 0.009 |
| modules | gen | 2 | 179 | 0.010 |
| loops | gen | 4 | 295 | 0.012 |
| fib_recursive | gen | 11 | 869 | 0.012 |
| asdl_generated | gen | 7 | 377 | 0.019 |
| parse | gen | 22 | 766 | 0.029 |
| scoped_resource | gen | 47 | 1,039 | 0.045 |
| containers | gen | 8 | 108 | 0.073 |
| tuple_return_value | gen | 20 | 189 | 0.106 |
| files | gen | 8 | 70 | 0.109 |
| length | gen | 41 | 204 | 0.202 |
| cartesian | gen | 86 | 339 | 0.254 |
| escape | gen | 106 | 366 | 0.290 |
| cgi | gen | 269 | 503 | 0.536 |
| varargs | gen | 23 | 15 | 1.538 |
| control_flow | gen | 205 | 104 | 1.975 |
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.42 |
| parse | gen | 3.9 | 7.7 | 0.51 |
| modules | gen | 3.7 | 7.1 | 0.52 |
| gc_stack_roots | gen | 3.5 | 6.8 | 0.52 |
| 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 |
| control_flow | gen | 3.7 | 6.9 | 0.53 |
| escape | 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 |
| length | gen | 3.8 | 7.1 | 0.54 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.4 | 47.8 | 0.59 |
| varargs | gen | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 12 | 0.000 |
| escape | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 0 | 12 | 0.000 |
| fib_recursive | gen | 0 | 12 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| scoped_resource | gen | 0 | 4 | 0.000 |
| tuple_return_value | gen | 0 | 12 | 0.000 |
| gc_stack_roots | gen | 2 | 9 | 0.189 |
| containers | gen | 8 | 28 | 0.280 |
| control_flow | gen | 4 | 12 | 0.329 |
| classes | gen | 3 | 8 | 0.423 |
| asdl_generated | gen | 4 | 8 | 0.452 |
| varargs | gen | 43 | 57 | 0.752 |
| parse | gen | 7 | 8 | 0.912 |
| length | gen | 4 | 4 | 1.029 |
| cartesian | gen | 4 | 4 | 1.030 |