Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| files | 0 | 71 | 0.000 |
| modules | 0 | 172 | 0.000 |
| fib_iter | 4 | 893 | 0.004 |
| fib_recursive | 7 | 877 | 0.008 |
| loops | 4 | 295 | 0.013 |
| asdl_generated | 7 | 368 | 0.020 |
| parse | 18 | 763 | 0.024 |
| scoped_resource | 39 | 1,018 | 0.039 |
| containers | 8 | 122 | 0.067 |
| tuple_return_value | 20 | 189 | 0.107 |
| classes | 3 | 19 | 0.166 |
| length | 37 | 203 | 0.184 |
| cartesian | 90 | 333 | 0.271 |
| escape | 99 | 349 | 0.285 |
| cgi | 266 | 502 | 0.529 |
| varargs | 16 | 24 | 0.680 |
| control_flow | 208 | 111 | 1.881 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
| example name | C++ | Python | C++ : Python |
| classes | 4.6 | 10.9 | 0.42 |
| loops | 3.7 | 7.2 | 0.51 |
| parse | 3.9 | 7.5 | 0.53 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| cartesian | 3.7 | 6.9 | 0.53 |
| cgi | 3.7 | 6.9 | 0.53 |
| escape | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.8 | 7.1 | 0.54 |
| files | 3.8 | 7.1 | 0.54 |
| scoped_resource | 3.8 | 7.1 | 0.54 |
| control_flow | 3.7 | 6.8 | 0.54 |
| length | 3.7 | 6.8 | 0.54 |
| fib_iter | 3.8 | 6.9 | 0.55 |
| modules | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| containers | 28.7 | 47.7 | 0.60 |
| varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| cgi | 0 | 12 | 0.000 |
| classes | 0 | 11 | 0.000 |
| control_flow | 0 | 4 | 0.000 |
| loops | 0 | 16 | 0.000 |
| tuple_return_value | 0 | 4 | 0.000 |
| modules | 2 | 12 | 0.148 |
| fib_recursive | 4 | 12 | 0.300 |
| asdl_generated | 4 | 8 | 0.450 |
| containers | 8 | 16 | 0.523 |
| length | 7 | 8 | 0.938 |
| escape | 8 | 8 | 0.991 |
| varargs | 49 | 48 | 1.020 |
| parse | 11 | 8 | 1.387 |
| files | 7 | 4 | 1.866 |
| scoped_resource | 8 | 4 | 1.958 |
| fib_iter | 4 | 0 | inf |
| cartesian | 0 | 0 | NA |