Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 398 | 0.000 |
fib_iter | 8 | 884 | 0.009 |
modules | 2 | 179 | 0.011 |
fib_recursive | 11 | 880 | 0.012 |
loops | 4 | 298 | 0.013 |
scoped_resource | 40 | 1,015 | 0.039 |
parse | 30 | 751 | 0.040 |
files | 4 | 76 | 0.049 |
tuple_return_value | 20 | 189 | 0.106 |
containers | 12 | 103 | 0.116 |
classes | 3 | 19 | 0.172 |
length | 44 | 198 | 0.223 |
cartesian | 91 | 344 | 0.263 |
escape | 98 | 351 | 0.279 |
cgi | 250 | 508 | 0.492 |
varargs | 31 | 16 | 1.946 |
control_flow | 209 | 104 | 2.004 |
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.8 | 0.41 |
parse | 3.8 | 7.6 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
cgi | 3.5 | 6.8 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
control_flow | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
scoped_resource | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
loops | 3.9 | 7.1 | 0.56 |
fib_iter | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 11 | 0.000 |
control_flow | 0 | 12 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
length | 0 | 12 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 0 | 4 | 0.000 |
parse | 0 | 12 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
containers | 4 | 36 | 0.111 |
cgi | 4 | 8 | 0.496 |
varargs | 35 | 56 | 0.625 |
scoped_resource | 8 | 8 | 0.990 |
escape | 8 | 4 | 1.941 |
asdl_generated | 11 | 4 | 2.664 |
files | 4 | 0 | inf |
cartesian | 0 | 0 | NA |