Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| classes | 0 | 27 | 0.000 |
| fib_iter | 4 | 903 | 0.004 |
| modules | 2 | 183 | 0.010 |
| loops | 4 | 304 | 0.012 |
| fib_recursive | 11 | 885 | 0.012 |
| asdl_generated | 5 | 380 | 0.014 |
| parse | 29 | 771 | 0.038 |
| scoped_resource | 43 | 1,018 | 0.043 |
| files | 4 | 76 | 0.050 |
| containers | 10 | 116 | 0.087 |
| tuple_return_value | 20 | 186 | 0.108 |
| length | 36 | 210 | 0.172 |
| cartesian | 82 | 323 | 0.254 |
| escape | 98 | 345 | 0.285 |
| cgi | 265 | 512 | 0.517 |
| varargs | 21 | 28 | 0.749 |
| control_flow | 207 | 110 | 1.891 |
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.7 | 0.42 |
| parse | 3.7 | 7.6 | 0.48 |
| asdl_generated | 3.5 | 7.1 | 0.50 |
| scoped_resource | 3.5 | 7.1 | 0.50 |
| cartesian | 3.5 | 6.9 | 0.51 |
| cgi | 3.7 | 6.9 | 0.53 |
| escape | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.7 | 6.9 | 0.53 |
| files | 3.7 | 6.9 | 0.53 |
| modules | 3.7 | 6.9 | 0.53 |
| loops | 3.8 | 7.1 | 0.54 |
| tuple_return_value | 3.8 | 7.1 | 0.54 |
| fib_iter | 3.8 | 6.9 | 0.55 |
| length | 3.8 | 6.9 | 0.55 |
| control_flow | 3.9 | 6.9 | 0.57 |
| containers | 28.3 | 47.8 | 0.59 |
| varargs | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| control_flow | 0 | 4 | 0.000 |
| fib_recursive | 0 | 8 | 0.000 |
| loops | 0 | 8 | 0.000 |
| modules | 0 | 4 | 0.000 |
| parse | 0 | 4 | 0.000 |
| tuple_return_value | 0 | 8 | 0.000 |
| containers | 5 | 24 | 0.211 |
| scoped_resource | 4 | 12 | 0.329 |
| escape | 8 | 12 | 0.660 |
| asdl_generated | 5 | 8 | 0.684 |
| classes | 3 | 4 | 0.834 |
| cgi | 4 | 4 | 1.002 |
| cartesian | 8 | 8 | 1.028 |
| varargs | 46 | 44 | 1.049 |
| fib_iter | 4 | 0 | inf |
| files | 4 | 0 | inf |
| length | 8 | 0 | inf |