Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
modules | 0 | 185 | 0.000 |
fib_iter | 8 | 894 | 0.008 |
fib_recursive | 11 | 886 | 0.012 |
loops | 4 | 299 | 0.012 |
parse | 22 | 774 | 0.028 |
asdl_generated | 11 | 375 | 0.029 |
scoped_resource | 47 | 1,013 | 0.046 |
tuple_return_value | 16 | 190 | 0.085 |
containers | 12 | 113 | 0.104 |
files | 8 | 65 | 0.118 |
classes | 3 | 23 | 0.143 |
length | 44 | 197 | 0.224 |
cartesian | 86 | 321 | 0.269 |
escape | 97 | 343 | 0.282 |
cgi | 262 | 513 | 0.511 |
control_flow | 204 | 111 | 1.847 |
varargs | 27 | 4 | 6.759 |
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 |
scoped_resource | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
tuple_return_value | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.8 | 0.56 |
fib_recursive | 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 |
asdl_generated | 0 | 8 | 0.000 |
classes | 0 | 8 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 11 | 0.000 |
length | 0 | 12 | 0.000 |
loops | 0 | 4 | 0.000 |
scoped_resource | 0 | 16 | 0.000 |
containers | 4 | 24 | 0.162 |
modules | 2 | 8 | 0.249 |
cartesian | 4 | 8 | 0.519 |
varargs | 39 | 68 | 0.568 |
parse | 7 | 8 | 0.915 |
control_flow | 4 | 4 | 0.978 |
cgi | 4 | 4 | 0.992 |
tuple_return_value | 4 | 4 | 0.996 |
escape | 8 | 8 | 1.010 |