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 | 8 | 883 | 0.009 |
| modules | gen | 2 | 185 | 0.010 |
| fib_recursive | gen | 11 | 883 | 0.012 |
| loops | gen | 4 | 293 | 0.013 |
| asdl_generated | gen | 7 | 384 | 0.019 |
| scoped_resource | gen | 38 | 1,030 | 0.037 |
| parse | gen | 29 | 775 | 0.038 |
| containers | gen | 12 | 120 | 0.100 |
| tuple_return_value | gen | 20 | 189 | 0.106 |
| files | gen | 8 | 70 | 0.109 |
| length | gen | 46 | 205 | 0.225 |
| cartesian | gen | 86 | 341 | 0.252 |
| classes | gen | 3 | 11 | 0.280 |
| escape | gen | 101 | 340 | 0.298 |
| cgi | gen | 265 | 513 | 0.517 |
| varargs | gen | 23 | 24 | 0.970 |
| control_flow | gen | 208 | 104 | 1.989 |
| 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.5 | 10.7 | 0.41 |
| gc_stack_roots | gen | 3.4 | 7.1 | 0.48 |
| parse | gen | 3.7 | 7.6 | 0.48 |
| cgi | gen | 3.5 | 6.9 | 0.51 |
| fib_iter | gen | 3.5 | 6.9 | 0.51 |
| escape | gen | 3.7 | 7.1 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.7 | 6.9 | 0.53 |
| asdl_generated | gen | 3.8 | 7.1 | 0.54 |
| fib_recursive | gen | 3.8 | 7.1 | 0.54 |
| files | gen | 3.8 | 7.1 | 0.54 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.4 | 47.8 | 0.59 |
| varargs | gen | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| classes | gen | 0 | 19 | 0.000 |
| control_flow | gen | 0 | 12 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| length | gen | 0 | 4 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| parse | gen | 0 | 8 | 0.000 |
| tuple_return_value | gen | 0 | 4 | 0.000 |
| containers | gen | 4 | 16 | 0.249 |
| escape | gen | 4 | 16 | 0.256 |
| asdl_generated | gen | 4 | 8 | 0.453 |
| cgi | gen | 4 | 8 | 0.494 |
| cartesian | gen | 4 | 8 | 0.510 |
| varargs | gen | 43 | 48 | 0.889 |
| scoped_resource | gen | 9 | 8 | 1.065 |
| modules | gen | 0 | 0 | NA |