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 | 19 | 0.000 |
| files | 0 | 73 | 0.000 |
| fib_iter | 8 | 890 | 0.009 |
| modules | 2 | 186 | 0.010 |
| fib_recursive | 11 | 880 | 0.012 |
| loops | 4 | 285 | 0.013 |
| asdl_generated | 7 | 372 | 0.019 |
| parse | 21 | 760 | 0.027 |
| scoped_resource | 47 | 1,029 | 0.046 |
| tuple_return_value | 20 | 222 | 0.091 |
| containers | 12 | 94 | 0.125 |
| length | 44 | 200 | 0.221 |
| cartesian | 83 | 334 | 0.247 |
| escape | 97 | 341 | 0.284 |
| cgi | 259 | 513 | 0.504 |
| control_flow | 206 | 109 | 1.889 |
| varargs | 23 | 12 | 1.909 |
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 |
| escape | 3.5 | 7.1 | 0.50 |
| parse | 3.8 | 7.6 | 0.50 |
| asdl_generated | 3.7 | 7.1 | 0.52 |
| cartesian | 3.7 | 7.1 | 0.52 |
| fib_iter | 3.7 | 7.1 | 0.52 |
| loops | 3.8 | 7.2 | 0.53 |
| modules | 3.7 | 6.9 | 0.53 |
| cgi | 3.5 | 6.7 | 0.53 |
| fib_recursive | 3.8 | 6.9 | 0.55 |
| length | 3.8 | 6.9 | 0.55 |
| scoped_resource | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| control_flow | 3.8 | 6.8 | 0.56 |
| files | 3.9 | 6.9 | 0.57 |
| containers | 28.6 | 47.8 | 0.60 |
| varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| fib_iter | 0 | 4 | 0.000 |
| fib_recursive | 0 | 8 | 0.000 |
| length | 0 | 8 | 0.000 |
| loops | 0 | 12 | 0.000 |
| scoped_resource | 0 | 4 | 0.000 |
| tuple_return_value | 0 | 4 | 0.000 |
| containers | 4 | 45 | 0.087 |
| classes | 3 | 11 | 0.287 |
| asdl_generated | 4 | 12 | 0.298 |
| control_flow | 4 | 8 | 0.500 |
| parse | 8 | 12 | 0.694 |
| varargs | 42 | 61 | 0.700 |
| cgi | 8 | 8 | 1.000 |
| escape | 12 | 12 | 1.018 |
| files | 8 | 4 | 1.866 |
| cartesian | 8 | 4 | 1.956 |
| modules | 0 | 0 | NA |