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 |
| fib_iter | gen | 4 | 904 | 0.004 |
| modules | gen | 2 | 176 | 0.010 |
| fib_recursive | gen | 11 | 882 | 0.012 |
| loops | gen | 4 | 294 | 0.013 |
| asdl_generated | gen | 7 | 374 | 0.019 |
| parse | gen | 26 | 781 | 0.033 |
| containers | gen | 4 | 106 | 0.037 |
| scoped_resource | gen | 49 | 1,038 | 0.047 |
| tuple_return_value | gen | 16 | 181 | 0.089 |
| files | gen | 8 | 72 | 0.104 |
| classes | gen | 3 | 23 | 0.139 |
| length | gen | 44 | 201 | 0.221 |
| cartesian | gen | 83 | 332 | 0.250 |
| escape | gen | 107 | 355 | 0.300 |
| cgi | gen | 270 | 511 | 0.528 |
| varargs | gen | 16 | 27 | 0.583 |
| control_flow | gen | 207 | 115 | 1.794 |
| gc_stack_roots | gen | 2 | 0 | inf |
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.8 | 0.40 |
| gc_stack_roots | gen | 3.4 | 6.9 | 0.49 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| cartesian | gen | 3.7 | 7.1 | 0.52 |
| escape | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cgi | gen | 3.7 | 6.9 | 0.53 |
| modules | 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 |
| scoped_resource | gen | 3.8 | 6.9 | 0.55 |
| fib_recursive | gen | 3.8 | 6.8 | 0.56 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| tuple_return_value | gen | 3.9 | 6.8 | 0.58 |
| containers | gen | 28.6 | 47.8 | 0.60 |
| varargs | gen | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 8 | 0.000 |
| escape | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 12 | 0.000 |
| files | gen | 0 | 4 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| length | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 8 | 0.000 |
| scoped_resource | gen | 0 | 12 | 0.000 |
| fib_iter | gen | 4 | 12 | 0.336 |
| tuple_return_value | gen | 4 | 12 | 0.341 |
| containers | gen | 12 | 32 | 0.379 |
| asdl_generated | gen | 4 | 8 | 0.457 |
| parse | gen | 4 | 4 | 0.921 |
| cartesian | gen | 8 | 8 | 0.989 |
| varargs | gen | 52 | 47 | 1.105 |
| control_flow | gen | 4 | 0 | inf |
| loops | gen | 0 | 0 | NA |