Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| loops | gen | 0 | 299 | 0.000 |
| fib_iter | gen | 8 | 908 | 0.008 |
| modules | gen | 2 | 182 | 0.010 |
| fib_recursive | gen | 11 | 922 | 0.012 |
| asdl_generated | gen | 11 | 370 | 0.029 |
| parse | gen | 25 | 788 | 0.032 |
| containers | gen | 4 | 113 | 0.036 |
| scoped_resource | gen | 43 | 1,037 | 0.041 |
| files | gen | 4 | 72 | 0.053 |
| tuple_return_value | gen | 20 | 189 | 0.107 |
| length | gen | 40 | 204 | 0.197 |
| cartesian | gen | 90 | 333 | 0.271 |
| classes | gen | 3 | 11 | 0.302 |
| escape | gen | 103 | 341 | 0.303 |
| gc_stack_roots | gen | 2 | 4 | 0.432 |
| cgi | gen | 265 | 515 | 0.516 |
| varargs | gen | 20 | 12 | 1.631 |
| control_flow | gen | 207 | 106 | 1.955 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
| example name | gen | C++ | Python | C++ : Python |
| classes | gen | 4.2 | 10.9 | 0.39 |
| cgi | gen | 3.5 | 6.9 | 0.51 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| escape | gen | 3.7 | 7.1 | 0.52 |
| fib_recursive | gen | 3.7 | 7.1 | 0.52 |
| scoped_resource | gen | 3.7 | 7.1 | 0.52 |
| tuple_return_value | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| cartesian | gen | 3.7 | 6.9 | 0.53 |
| length | gen | 3.7 | 6.9 | 0.53 |
| modules | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.8 | 6.9 | 0.55 |
| loops | gen | 3.8 | 6.9 | 0.55 |
| control_flow | gen | 3.9 | 6.9 | 0.57 |
| files | gen | 3.9 | 6.9 | 0.57 |
| containers | gen | 28.7 | 47.8 | 0.60 |
| varargs | gen | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| asdl_generated | gen | 0 | 8 | 0.000 |
| cartesian | gen | 0 | 4 | 0.000 |
| classes | gen | 0 | 21 | 0.000 |
| control_flow | gen | 0 | 8 | 0.000 |
| fib_iter | gen | 0 | 4 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| gc_stack_roots | gen | 0 | 8 | 0.000 |
| modules | gen | 0 | 4 | 0.000 |
| tuple_return_value | gen | 0 | 4 | 0.000 |
| escape | gen | 4 | 12 | 0.330 |
| containers | gen | 12 | 23 | 0.519 |
| varargs | gen | 47 | 60 | 0.783 |
| files | gen | 4 | 4 | 0.951 |
| scoped_resource | gen | 4 | 4 | 0.974 |
| length | gen | 4 | 4 | 1.005 |
| cgi | gen | 4 | 4 | 1.008 |
| parse | gen | 4 | 4 | 1.056 |
| loops | gen | 4 | 0 | inf |