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 | 23 | 0.000 |
fib_recursive | 7 | 884 | 0.008 |
fib_iter | 8 | 893 | 0.008 |
modules | 2 | 174 | 0.010 |
loops | 4 | 286 | 0.013 |
asdl_generated | 11 | 377 | 0.028 |
parse | 30 | 769 | 0.039 |
scoped_resource | 45 | 1,035 | 0.043 |
files | 4 | 68 | 0.055 |
containers | 8 | 112 | 0.069 |
tuple_return_value | 20 | 181 | 0.112 |
length | 40 | 208 | 0.193 |
cartesian | 87 | 319 | 0.272 |
escape | 100 | 344 | 0.291 |
cgi | 253 | 515 | 0.491 |
varargs | 25 | 20 | 1.246 |
control_flow | 210 | 100 | 2.098 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.9 | 0.40 |
escape | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
fib_iter | 3.8 | 7.1 | 0.54 |
files | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
cartesian | 3.7 | 6.8 | 0.54 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
cgi | 0 | 4 | 0.000 |
control_flow | 0 | 12 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
loops | 0 | 12 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 4 | 0.000 |
tuple_return_value | 0 | 16 | 0.000 |
containers | 8 | 24 | 0.323 |
cartesian | 4 | 12 | 0.329 |
classes | 3 | 8 | 0.422 |
files | 4 | 8 | 0.469 |
escape | 4 | 8 | 0.501 |
scoped_resource | 4 | 8 | 0.509 |
varargs | 41 | 52 | 0.799 |
fib_recursive | 4 | 4 | 0.897 |
length | 4 | 4 | 1.005 |