Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
loops | 0 | 297 | 0.000 |
fib_iter | 8 | 893 | 0.008 |
asdl_generated | 4 | 395 | 0.009 |
modules | 2 | 175 | 0.010 |
fib_recursive | 11 | 871 | 0.012 |
parse | 30 | 777 | 0.038 |
scoped_resource | 47 | 1,042 | 0.045 |
containers | 10 | 114 | 0.089 |
files | 8 | 73 | 0.103 |
tuple_return_value | 20 | 192 | 0.105 |
classes | 3 | 23 | 0.140 |
length | 37 | 203 | 0.181 |
cartesian | 91 | 332 | 0.275 |
escape | 94 | 343 | 0.275 |
cgi | 270 | 507 | 0.534 |
varargs | 21 | 36 | 0.571 |
control_flow | 205 | 111 | 1.847 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.2 | 10.7 | 0.39 |
parse | 3.8 | 7.6 | 0.50 |
modules | 3.5 | 6.9 | 0.51 |
scoped_resource | 3.7 | 7.1 | 0.52 |
loops | 3.8 | 7.2 | 0.53 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
cgi | 0 | 8 | 0.000 |
classes | 0 | 8 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 8 | 0.000 |
containers | 5 | 20 | 0.258 |
loops | 4 | 8 | 0.463 |
length | 7 | 8 | 0.924 |
control_flow | 4 | 4 | 1.014 |
varargs | 45 | 36 | 1.257 |
escape | 12 | 8 | 1.542 |
asdl_generated | 7 | 4 | 1.798 |
scoped_resource | 0 | 0 | NA |
tuple_return_value | 0 | 0 | NA |