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 | 285 | 0.000 |
| fib_iter | 8 | 899 | 0.008 |
| modules | 2 | 183 | 0.010 |
| fib_recursive | 11 | 911 | 0.012 |
| asdl_generated | 11 | 375 | 0.029 |
| parse | 25 | 764 | 0.033 |
| tuple_return_value | 7 | 189 | 0.036 |
| scoped_resource | 47 | 1,052 | 0.044 |
| containers | 10 | 116 | 0.088 |
| files | 8 | 68 | 0.110 |
| classes | 3 | 22 | 0.148 |
| length | 45 | 205 | 0.218 |
| cartesian | 86 | 329 | 0.262 |
| escape | 96 | 347 | 0.278 |
| cgi | 280 | 513 | 0.546 |
| varargs | 23 | 16 | 1.444 |
| control_flow | 207 | 111 | 1.861 |
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.41 |
| cartesian | 3.5 | 6.9 | 0.51 |
| parse | 3.9 | 7.6 | 0.52 |
| escape | 3.7 | 7.1 | 0.52 |
| loops | 3.7 | 7.1 | 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 |
| files | 3.8 | 7.1 | 0.54 |
| scoped_resource | 3.8 | 7.1 | 0.54 |
| tuple_return_value | 3.7 | 6.8 | 0.54 |
| fib_iter | 3.8 | 6.9 | 0.55 |
| modules | 3.8 | 6.9 | 0.55 |
| control_flow | 3.9 | 6.9 | 0.57 |
| length | 3.9 | 6.9 | 0.57 |
| containers | 28.6 | 47.8 | 0.60 |
| varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| asdl_generated | 0 | 4 | 0.000 |
| cgi | 0 | 4 | 0.000 |
| classes | 0 | 9 | 0.000 |
| files | 0 | 8 | 0.000 |
| length | 0 | 4 | 0.000 |
| modules | 0 | 4 | 0.000 |
| scoped_resource | 0 | 4 | 0.000 |
| containers | 5 | 20 | 0.257 |
| loops | 4 | 12 | 0.300 |
| cartesian | 4 | 12 | 0.330 |
| parse | 4 | 8 | 0.523 |
| varargs | 43 | 57 | 0.756 |
| control_flow | 4 | 4 | 1.002 |
| escape | 12 | 4 | 2.984 |
| tuple_return_value | 13 | 4 | 3.343 |
| fib_iter | 0 | 0 | NA |
| fib_recursive | 0 | 0 | NA |