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 | 31 | 0.000 |
| fib_iter | gen | 8 | 887 | 0.009 |
| modules | gen | 2 | 178 | 0.011 |
| fib_recursive | gen | 11 | 883 | 0.012 |
| loops | gen | 4 | 286 | 0.013 |
| asdl_generated | gen | 5 | 376 | 0.014 |
| containers | gen | 4 | 115 | 0.035 |
| parse | gen | 29 | 776 | 0.038 |
| scoped_resource | gen | 40 | 1,025 | 0.039 |
| tuple_return_value | gen | 20 | 209 | 0.097 |
| files | gen | 8 | 68 | 0.112 |
| length | gen | 38 | 209 | 0.182 |
| gc_stack_roots | gen | 2 | 8 | 0.221 |
| cartesian | gen | 87 | 349 | 0.249 |
| escape | gen | 97 | 349 | 0.278 |
| cgi | gen | 256 | 510 | 0.502 |
| varargs | gen | 20 | 12 | 1.623 |
| control_flow | gen | 210 | 110 | 1.906 |
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 |
| escape | gen | 3.5 | 6.9 | 0.51 |
| scoped_resource | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| modules | gen | 3.7 | 7.1 | 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 |
| length | 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 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| fib_recursive | gen | 3.9 | 6.9 | 0.57 |
| tuple_return_value | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.5 | 47.7 | 0.60 |
| varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| cgi | gen | 0 | 8 | 0.000 |
| control_flow | gen | 0 | 4 | 0.000 |
| fib_iter | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 4 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 12 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| cartesian | gen | 4 | 12 | 0.332 |
| containers | gen | 12 | 36 | 0.340 |
| scoped_resource | gen | 8 | 16 | 0.498 |
| asdl_generated | gen | 5 | 8 | 0.676 |
| varargs | gen | 47 | 60 | 0.779 |
| escape | gen | 8 | 4 | 2.018 |
| classes | gen | 3 | 0 | inf |
| length | gen | 8 | 0 | inf |
| tuple_return_value | gen | 0 | 0 | NA |