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 | 897 | 0.004 |
| modules | gen | 2 | 184 | 0.010 |
| fib_recursive | gen | 11 | 897 | 0.012 |
| loops | gen | 4 | 296 | 0.012 |
| asdl_generated | gen | 11 | 374 | 0.029 |
| containers | gen | 3 | 110 | 0.031 |
| parse | gen | 27 | 776 | 0.035 |
| scoped_resource | gen | 45 | 1,044 | 0.043 |
| files | gen | 4 | 68 | 0.055 |
| tuple_return_value | gen | 19 | 190 | 0.099 |
| classes | gen | 3 | 22 | 0.141 |
| length | gen | 41 | 203 | 0.200 |
| cartesian | gen | 80 | 326 | 0.244 |
| escape | gen | 112 | 365 | 0.306 |
| cgi | gen | 249 | 513 | 0.486 |
| control_flow | gen | 161 | 107 | 1.505 |
| varargs | gen | 29 | 12 | 2.429 |
| 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 | 6.9 | 0.49 |
| parse | gen | 3.8 | 7.6 | 0.50 |
| asdl_generated | gen | 3.5 | 6.9 | 0.51 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.7 | 6.9 | 0.53 |
| scoped_resource | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| tuple_return_value | gen | 3.8 | 7.1 | 0.54 |
| escape | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 7.1 | 0.56 |
| cgi | gen | 3.8 | 6.8 | 0.56 |
| fib_recursive | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.6 | 47.8 | 0.60 |
| varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 8 | 0.000 |
| classes | gen | 0 | 15 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| loops | gen | 0 | 4 | 0.000 |
| scoped_resource | gen | 0 | 12 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| containers | gen | 10 | 25 | 0.422 |
| files | gen | 4 | 8 | 0.470 |
| fib_iter | gen | 4 | 8 | 0.479 |
| cgi | gen | 4 | 8 | 0.493 |
| escape | gen | 4 | 8 | 0.498 |
| varargs | gen | 37 | 60 | 0.625 |
| cartesian | gen | 8 | 12 | 0.668 |
| length | gen | 4 | 4 | 1.023 |
| modules | gen | 0 | 0 | NA |
| parse | gen | 0 | 0 | NA |