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 | 16 | 0.000 |
| modules | 0 | 174 | 0.000 |
| fib_recursive | 7 | 884 | 0.008 |
| fib_iter | 8 | 894 | 0.008 |
| loops | 4 | 292 | 0.012 |
| asdl_generated | 11 | 375 | 0.029 |
| parse | 29 | 767 | 0.038 |
| scoped_resource | 47 | 1,038 | 0.045 |
| containers | 8 | 122 | 0.063 |
| files | 7 | 72 | 0.103 |
| tuple_return_value | 20 | 177 | 0.113 |
| length | 41 | 207 | 0.197 |
| cartesian | 84 | 330 | 0.254 |
| escape | 107 | 353 | 0.302 |
| varargs | 12 | 24 | 0.516 |
| cgi | 270 | 514 | 0.526 |
| control_flow | 207 | 106 | 1.953 |
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.6 | 0.42 |
| loops | 3.7 | 7.2 | 0.51 |
| asdl_generated | 3.5 | 6.9 | 0.51 |
| cartesian | 3.5 | 6.9 | 0.51 |
| scoped_resource | 3.5 | 6.9 | 0.51 |
| parse | 3.9 | 7.6 | 0.52 |
| cgi | 3.7 | 7.1 | 0.52 |
| length | 3.7 | 7.1 | 0.52 |
| modules | 3.7 | 7.1 | 0.52 |
| fib_iter | 3.8 | 7.1 | 0.54 |
| files | 3.8 | 7.1 | 0.54 |
| escape | 3.8 | 6.9 | 0.55 |
| fib_recursive | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| control_flow | 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 | 8 | 0.000 |
| control_flow | 0 | 8 | 0.000 |
| fib_iter | 0 | 4 | 0.000 |
| files | 0 | 8 | 0.000 |
| loops | 0 | 8 | 0.000 |
| parse | 0 | 12 | 0.000 |
| scoped_resource | 0 | 4 | 0.000 |
| tuple_return_value | 0 | 16 | 0.000 |
| classes | 3 | 16 | 0.203 |
| modules | 2 | 8 | 0.218 |
| fib_recursive | 4 | 8 | 0.446 |
| cgi | 4 | 8 | 0.499 |
| containers | 8 | 12 | 0.633 |
| cartesian | 8 | 8 | 0.993 |
| length | 4 | 4 | 1.025 |
| varargs | 54 | 48 | 1.118 |
| escape | 0 | 0 | NA |