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 |
fib_iter | 8 | 898 | 0.009 |
modules | 2 | 175 | 0.010 |
fib_recursive | 11 | 874 | 0.012 |
loops | 4 | 295 | 0.013 |
asdl_generated | 11 | 381 | 0.028 |
parse | 22 | 771 | 0.028 |
scoped_resource | 48 | 1,047 | 0.046 |
files | 4 | 72 | 0.052 |
containers | 8 | 111 | 0.069 |
tuple_return_value | 16 | 189 | 0.085 |
length | 45 | 205 | 0.221 |
escape | 86 | 346 | 0.248 |
cartesian | 86 | 319 | 0.271 |
varargs | 12 | 40 | 0.293 |
cgi | 250 | 514 | 0.486 |
control_flow | 206 | 106 | 1.950 |
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.9 | 7.7 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
loops | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.8 | 7.1 | 0.54 |
modules | 3.7 | 6.8 | 0.54 |
length | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 7.1 | 0.56 |
tuple_return_value | 3.8 | 6.8 | 0.56 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
length | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
containers | 8 | 28 | 0.277 |
classes | 3 | 12 | 0.278 |
control_flow | 4 | 8 | 0.487 |
cartesian | 4 | 8 | 0.492 |
tuple_return_value | 4 | 8 | 0.513 |
parse | 7 | 12 | 0.611 |
files | 4 | 4 | 0.932 |
varargs | 54 | 32 | 1.707 |
escape | 20 | 8 | 2.571 |
cgi | 4 | 0 | inf |
asdl_generated | 0 | 0 | NA |