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 | 304 | 0.000 |
| fib_iter | 8 | 896 | 0.009 |
| modules | 2 | 187 | 0.010 |
| fib_recursive | 11 | 880 | 0.012 |
| asdl_generated | 11 | 371 | 0.029 |
| parse | 26 | 766 | 0.034 |
| scoped_resource | 44 | 1,052 | 0.042 |
| tuple_return_value | 20 | 197 | 0.104 |
| containers | 12 | 112 | 0.105 |
| files | 8 | 71 | 0.107 |
| classes | 3 | 17 | 0.189 |
| length | 45 | 202 | 0.222 |
| cartesian | 75 | 330 | 0.227 |
| escape | 102 | 353 | 0.290 |
| cgi | 268 | 511 | 0.525 |
| varargs | 16 | 28 | 0.562 |
| control_flow | 206 | 110 | 1.870 |
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.8 | 0.41 |
| parse | 3.7 | 7.6 | 0.48 |
| loops | 3.7 | 7.1 | 0.52 |
| scoped_resource | 3.7 | 7.1 | 0.52 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| cartesian | 3.7 | 6.9 | 0.53 |
| cgi | 3.7 | 6.9 | 0.53 |
| fib_iter | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.7 | 6.9 | 0.53 |
| length | 3.8 | 7.1 | 0.54 |
| tuple_return_value | 3.8 | 7.1 | 0.54 |
| escape | 3.7 | 6.8 | 0.54 |
| control_flow | 3.8 | 6.9 | 0.55 |
| files | 3.8 | 6.9 | 0.55 |
| modules | 3.8 | 6.9 | 0.55 |
| containers | 28.7 | 47.8 | 0.60 |
| varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| asdl_generated | 0 | 12 | 0.000 |
| cgi | 0 | 8 | 0.000 |
| classes | 0 | 13 | 0.000 |
| fib_recursive | 0 | 4 | 0.000 |
| files | 0 | 4 | 0.000 |
| length | 0 | 8 | 0.000 |
| modules | 0 | 4 | 0.000 |
| containers | 4 | 24 | 0.163 |
| parse | 4 | 12 | 0.311 |
| scoped_resource | 4 | 8 | 0.501 |
| escape | 4 | 4 | 0.983 |
| control_flow | 4 | 4 | 0.990 |
| varargs | 51 | 44 | 1.162 |
| cartesian | 16 | 4 | 3.970 |
| loops | 4 | 0 | inf |
| fib_iter | 0 | 0 | NA |
| tuple_return_value | 0 | 0 | NA |