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 |
| classes | gen | 0 | 23 | 0.000 |
| fib_iter | gen | 8 | 886 | 0.009 |
| modules | gen | 2 | 173 | 0.010 |
| fib_recursive | gen | 11 | 887 | 0.012 |
| loops | gen | 4 | 287 | 0.012 |
| parse | gen | 22 | 784 | 0.028 |
| asdl_generated | gen | 11 | 382 | 0.028 |
| scoped_resource | gen | 47 | 1,044 | 0.045 |
| containers | gen | 8 | 113 | 0.068 |
| tuple_return_value | gen | 20 | 186 | 0.110 |
| files | gen | 8 | 64 | 0.121 |
| length | gen | 34 | 200 | 0.169 |
| cartesian | gen | 81 | 324 | 0.251 |
| escape | gen | 102 | 347 | 0.294 |
| cgi | gen | 265 | 519 | 0.511 |
| varargs | gen | 16 | 20 | 0.783 |
| control_flow | gen | 208 | 113 | 1.845 |
| gc_stack_roots | gen | 2 | 0 | inf |
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.5 | 10.8 | 0.41 |
| cartesian | gen | 3.5 | 7.1 | 0.50 |
| scoped_resource | gen | 3.5 | 7.1 | 0.50 |
| gc_stack_roots | gen | 3.5 | 6.9 | 0.51 |
| parse | gen | 3.9 | 7.6 | 0.52 |
| cgi | gen | 3.7 | 7.1 | 0.52 |
| asdl_generated | gen | 3.7 | 6.9 | 0.53 |
| escape | gen | 3.7 | 6.9 | 0.53 |
| fib_iter | gen | 3.7 | 6.9 | 0.53 |
| loops | gen | 3.8 | 7.1 | 0.54 |
| control_flow | gen | 3.8 | 6.9 | 0.55 |
| fib_recursive | gen | 3.8 | 6.9 | 0.55 |
| files | gen | 3.8 | 6.9 | 0.55 |
| length | gen | 3.8 | 6.9 | 0.55 |
| modules | gen | 3.8 | 6.9 | 0.55 |
| tuple_return_value | gen | 3.8 | 6.9 | 0.55 |
| containers | gen | 28.5 | 47.8 | 0.60 |
| varargs | gen | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
| example name | gen | C++ | Python | C++ : Python |
| fib_iter | gen | 0 | 12 | 0.000 |
| fib_recursive | gen | 0 | 8 | 0.000 |
| files | gen | 0 | 12 | 0.000 |
| gc_stack_roots | gen | 0 | 12 | 0.000 |
| loops | gen | 0 | 12 | 0.000 |
| modules | gen | 0 | 8 | 0.000 |
| scoped_resource | gen | 0 | 8 | 0.000 |
| tuple_return_value | gen | 0 | 8 | 0.000 |
| containers | gen | 8 | 23 | 0.331 |
| classes | gen | 3 | 8 | 0.423 |
| cgi | gen | 4 | 8 | 0.496 |
| escape | gen | 4 | 8 | 0.511 |
| parse | gen | 7 | 12 | 0.609 |
| varargs | gen | 51 | 52 | 0.978 |
| cartesian | gen | 8 | 8 | 1.015 |
| length | gen | 11 | 8 | 1.409 |
| asdl_generated | gen | 0 | 0 | NA |
| control_flow | gen | 0 | 0 | NA |