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 | 32 | 0.000 |
| containers | gen | 0 | 122 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| loops | gen | 0 | 291 | 0.000 |
| fib_iter | gen | 8 | 893 | 0.009 |
| modules | gen | 2 | 179 | 0.011 |
| fib_recursive | gen | 11 | 906 | 0.012 |
| asdl_generated | gen | 7 | 370 | 0.020 |
| parse | gen | 29 | 761 | 0.038 |
| scoped_resource | gen | 44 | 1,044 | 0.042 |
| files | gen | 4 | 67 | 0.056 |
| tuple_return_value | gen | 16 | 189 | 0.086 |
| length | gen | 37 | 205 | 0.183 |
| cartesian | gen | 91 | 323 | 0.282 |
| escape | gen | 107 | 352 | 0.305 |
| cgi | gen | 266 | 507 | 0.525 |
| varargs | gen | 23 | 20 | 1.178 |
| control_flow | gen | 209 | 106 | 1.962 |
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 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| scoped_resource | gen | 3.7 | 7.2 | 0.51 |
| escape | gen | 3.5 | 6.9 | 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 |
| control_flow | gen | 3.7 | 6.9 | 0.53 |
| fib_recursive | gen | 3.7 | 6.9 | 0.53 |
| 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 |
| length | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.9 | 7.1 | 0.56 |
| containers | gen | 28.7 | 48.0 | 0.60 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cartesian | gen | 0 | 12 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| escape | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| asdl_generated | gen | 4 | 12 | 0.303 |
| scoped_resource | gen | 4 | 12 | 0.336 |
| gc_stack_roots | gen | 2 | 4 | 0.443 |
| files | gen | 4 | 8 | 0.474 |
| cgi | gen | 4 | 8 | 0.501 |
| varargs | gen | 43 | 52 | 0.831 |
| loops | gen | 4 | 4 | 0.967 |
| containers | gen | 15 | 16 | 0.981 |
| tuple_return_value | gen | 4 | 4 | 1.009 |
| length | gen | 7 | 4 | 1.864 |
| classes | gen | 3 | 0 | inf |
| fib_recursive | gen | 0 | 0 | NA |