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 | 31 | 0.000 |
| fib_iter | 4 | 890 | 0.004 |
| modules | 2 | 173 | 0.010 |
| fib_recursive | 11 | 881 | 0.012 |
| loops | 4 | 293 | 0.012 |
| asdl_generated | 7 | 370 | 0.019 |
| parse | 29 | 786 | 0.037 |
| scoped_resource | 48 | 1,041 | 0.046 |
| containers | 11 | 107 | 0.105 |
| tuple_return_value | 20 | 186 | 0.108 |
| files | 7 | 68 | 0.109 |
| length | 41 | 207 | 0.198 |
| escape | 97 | 365 | 0.266 |
| cartesian | 87 | 322 | 0.270 |
| cgi | 274 | 514 | 0.533 |
| varargs | 12 | 16 | 0.783 |
| control_flow | 210 | 110 | 1.919 |
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 |
| parse | 3.9 | 7.6 | 0.52 |
| cgi | 3.7 | 7.1 | 0.52 |
| scoped_resource | 3.7 | 7.1 | 0.52 |
| asdl_generated | 3.7 | 6.9 | 0.53 |
| cartesian | 3.7 | 6.9 | 0.53 |
| escape | 3.7 | 6.9 | 0.53 |
| length | 3.7 | 6.9 | 0.53 |
| fib_recursive | 3.8 | 7.1 | 0.54 |
| loops | 3.8 | 7.1 | 0.54 |
| modules | 3.8 | 6.9 | 0.55 |
| tuple_return_value | 3.8 | 6.9 | 0.55 |
| control_flow | 3.8 | 6.8 | 0.56 |
| fib_iter | 3.9 | 6.9 | 0.57 |
| files | 3.9 | 6.9 | 0.57 |
| containers | 28.6 | 47.7 | 0.60 |
| varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | C++ | Python | C++ : Python |
| cgi | 0 | 4 | 0.000 |
| control_flow | 0 | 4 | 0.000 |
| fib_recursive | 0 | 12 | 0.000 |
| files | 0 | 8 | 0.000 |
| loops | 0 | 4 | 0.000 |
| modules | 0 | 8 | 0.000 |
| parse | 0 | 4 | 0.000 |
| scoped_resource | 0 | 16 | 0.000 |
| tuple_return_value | 0 | 8 | 0.000 |
| containers | 4 | 24 | 0.158 |
| asdl_generated | 4 | 8 | 0.451 |
| cartesian | 4 | 8 | 0.491 |
| escape | 8 | 12 | 0.653 |
| fib_iter | 4 | 4 | 0.945 |
| varargs | 54 | 55 | 0.969 |
| length | 4 | 4 | 1.031 |
| classes | 3 | 0 | inf |