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 | 19 | 0.000 |
loops | 0 | 286 | 0.000 |
fib_iter | 4 | 880 | 0.004 |
asdl_generated | 4 | 382 | 0.009 |
modules | 2 | 176 | 0.010 |
fib_recursive | 11 | 886 | 0.012 |
parse | 25 | 762 | 0.033 |
scoped_resource | 40 | 1,040 | 0.038 |
tuple_return_value | 20 | 190 | 0.108 |
files | 7 | 68 | 0.109 |
containers | 15 | 118 | 0.128 |
length | 44 | 203 | 0.218 |
cartesian | 85 | 327 | 0.260 |
escape | 106 | 347 | 0.304 |
cgi | 252 | 508 | 0.496 |
varargs | 31 | 20 | 1.572 |
control_flow | 206 | 105 | 1.967 |
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.8 | 7.6 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
fib_iter | 3.5 | 6.9 | 0.51 |
loops | 3.8 | 7.2 | 0.53 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
length | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
containers | 0 | 16 | 0.000 |
control_flow | 0 | 8 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 8 | 0.000 |
length | 0 | 8 | 0.000 |
modules | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
fib_iter | 4 | 16 | 0.238 |
classes | 4 | 12 | 0.320 |
parse | 4 | 12 | 0.350 |
cgi | 4 | 8 | 0.500 |
cartesian | 4 | 8 | 0.507 |
loops | 4 | 8 | 0.524 |
varargs | 35 | 52 | 0.680 |
asdl_generated | 7 | 0 | inf |
scoped_resource | 8 | 0 | inf |