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 | 26 | 0.000 |
loops | 0 | 288 | 0.000 |
modules | 0 | 178 | 0.000 |
fib_iter | 4 | 892 | 0.004 |
fib_recursive | 11 | 877 | 0.012 |
asdl_generated | 7 | 374 | 0.019 |
parse | 25 | 822 | 0.031 |
containers | 4 | 110 | 0.035 |
scoped_resource | 47 | 1,013 | 0.046 |
tuple_return_value | 13 | 188 | 0.071 |
files | 7 | 72 | 0.102 |
length | 37 | 199 | 0.185 |
escape | 106 | 400 | 0.265 |
cartesian | 90 | 323 | 0.279 |
cgi | 265 | 507 | 0.522 |
varargs | 19 | 24 | 0.807 |
control_flow | 210 | 108 | 1.947 |
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.6 | 0.42 |
parse | 3.8 | 7.6 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
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 |
modules | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.8 | 7.1 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 7.1 | 0.56 |
loops | 3.9 | 7.1 | 0.56 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
modules | 2 | 8 | 0.224 |
loops | 4 | 12 | 0.304 |
asdl_generated | 4 | 8 | 0.458 |
containers | 12 | 24 | 0.491 |
cgi | 4 | 8 | 0.503 |
control_flow | 4 | 8 | 0.509 |
parse | 4 | 8 | 0.529 |
classes | 3 | 4 | 0.743 |
length | 7 | 8 | 0.923 |
fib_iter | 4 | 4 | 0.943 |
varargs | 47 | 48 | 0.968 |
tuple_return_value | 7 | 4 | 1.668 |