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 | 23 | 0.000 |
| fib_recursive | 7 | 887 | 0.008 |
| fib_iter | 8 | 894 | 0.009 |
| modules | 2 | 182 | 0.010 |
| loops | 4 | 288 | 0.013 |
| asdl_generated | 7 | 379 | 0.019 |
| containers | 4 | 116 | 0.034 |
| parse | 29 | 782 | 0.037 |
| scoped_resource | 41 | 1,044 | 0.039 |
| files | 8 | 77 | 0.102 |
| tuple_return_value | 20 | 180 | 0.112 |
| length | 37 | 201 | 0.184 |
| cartesian | 84 | 336 | 0.250 |
| escape | 102 | 350 | 0.290 |
| cgi | 265 | 515 | 0.515 |
| varargs | 21 | 16 | 1.299 |
| control_flow | 214 | 115 | 1.863 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
| example name | C++ | Python | C++ : Python |
| classes | 4.3 | 10.7 | 0.40 |
| parse | 3.8 | 7.6 | 0.50 |
| loops | 3.7 | 7.2 | 0.51 |
| scoped_resource | 3.7 | 7.1 | 0.52 |
| cartesian | 3.7 | 6.9 | 0.53 |
| cgi | 3.7 | 6.9 | 0.53 |
| escape | 3.7 | 6.9 | 0.53 |
| fib_iter | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.7 | 6.9 | 0.53 |
| modules | 3.8 | 7.1 | 0.54 |
| asdl_generated | 3.8 | 6.9 | 0.55 |
| control_flow | 3.8 | 6.9 | 0.55 |
| length | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| files | 3.9 | 6.9 | 0.57 |
| containers | 28.5 | 47.7 | 0.60 |
| varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| loops | 0 | 4 | 0.000 |
| modules | 0 | 4 | 0.000 |
| parse | 0 | 4 | 0.000 |
| tuple_return_value | 0 | 12 | 0.000 |
| classes | 3 | 8 | 0.418 |
| containers | 12 | 24 | 0.499 |
| varargs | 46 | 56 | 0.817 |
| fib_recursive | 4 | 4 | 0.895 |
| asdl_generated | 4 | 4 | 0.909 |
| cartesian | 8 | 8 | 0.999 |
| cgi | 4 | 4 | 1.006 |
| length | 8 | 8 | 1.020 |
| escape | 4 | 4 | 1.021 |
| scoped_resource | 7 | 4 | 1.861 |
| control_flow | 0 | 0 | NA |
| fib_iter | 0 | 0 | NA |
| files | 0 | 0 | NA |