Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| loops | 0 | 291 | 0.000 |
| modules | 0 | 171 | 0.000 |
| fib_iter | 4 | 889 | 0.005 |
| fib_recursive | 11 | 876 | 0.012 |
| asdl_generated | 7 | 384 | 0.019 |
| parse | 26 | 772 | 0.034 |
| containers | 4 | 115 | 0.034 |
| scoped_resource | 44 | 1,057 | 0.041 |
| tuple_return_value | 16 | 199 | 0.082 |
| files | 8 | 72 | 0.108 |
| classes | 3 | 24 | 0.136 |
| length | 36 | 203 | 0.179 |
| cartesian | 86 | 329 | 0.262 |
| escape | 103 | 353 | 0.290 |
| cgi | 269 | 523 | 0.515 |
| varargs | 16 | 8 | 1.964 |
| control_flow | 213 | 106 | 2.012 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
| example name | C++ | Python | C++ : Python |
| classes | 4.5 | 10.9 | 0.41 |
| parse | 3.9 | 7.7 | 0.51 |
| cartesian | 3.5 | 6.9 | 0.51 |
| fib_iter | 3.7 | 7.1 | 0.52 |
| escape | 3.5 | 6.8 | 0.52 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| cgi | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.7 | 6.9 | 0.53 |
| length | 3.7 | 6.9 | 0.53 |
| scoped_resource | 3.7 | 6.9 | 0.53 |
| tuple_return_value | 3.7 | 6.9 | 0.53 |
| files | 3.8 | 7.1 | 0.54 |
| loops | 3.8 | 7.1 | 0.54 |
| modules | 3.8 | 6.9 | 0.55 |
| control_flow | 3.9 | 6.9 | 0.57 |
| containers | 28.5 | 47.7 | 0.60 |
| varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| classes | 0 | 8 | 0.000 |
| control_flow | 0 | 8 | 0.000 |
| fib_recursive | 0 | 12 | 0.000 |
| files | 0 | 4 | 0.000 |
| modules | 2 | 12 | 0.154 |
| scoped_resource | 4 | 12 | 0.330 |
| fib_iter | 4 | 12 | 0.342 |
| asdl_generated | 4 | 8 | 0.454 |
| loops | 4 | 8 | 0.471 |
| containers | 12 | 24 | 0.497 |
| cartesian | 4 | 8 | 0.517 |
| varargs | 51 | 64 | 0.798 |
| parse | 4 | 4 | 0.924 |
| length | 8 | 8 | 1.012 |
| escape | 4 | 4 | 1.022 |
| tuple_return_value | 4 | 0 | inf |
| cgi | 0 | 0 | NA |