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 | 175 | 0.000 |
fib_iter | 8 | 881 | 0.009 |
fib_recursive | 11 | 878 | 0.012 |
loops | 4 | 298 | 0.012 |
asdl_generated | 8 | 400 | 0.019 |
parse | 30 | 774 | 0.038 |
scoped_resource | 42 | 1,015 | 0.042 |
files | 4 | 72 | 0.051 |
tuple_return_value | 16 | 183 | 0.087 |
classes | 3 | 27 | 0.122 |
containers | 15 | 109 | 0.140 |
length | 37 | 202 | 0.185 |
cartesian | 90 | 337 | 0.267 |
escape | 98 | 351 | 0.281 |
cgi | 254 | 507 | 0.501 |
varargs | 21 | 16 | 1.300 |
control_flow | 210 | 105 | 1.996 |
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.8 | 0.41 |
parse | 3.8 | 7.6 | 0.50 |
escape | 3.5 | 6.9 | 0.51 |
scoped_resource | 3.7 | 7.1 | 0.52 |
tuple_return_value | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
cartesian | 3.7 | 6.8 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
files | 3.9 | 7.1 | 0.56 |
fib_recursive | 3.9 | 6.9 | 0.57 |
containers | 28.7 | 47.8 | 0.60 |
varargs | 5.4 | 7.1 | 0.76 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 4 | 0.000 |
classes | 0 | 4 | 0.000 |
containers | 0 | 24 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
parse | 0 | 8 | 0.000 |
modules | 2 | 8 | 0.229 |
scoped_resource | 4 | 12 | 0.352 |
tuple_return_value | 4 | 8 | 0.503 |
varargs | 46 | 56 | 0.817 |
length | 7 | 8 | 0.924 |
files | 4 | 4 | 0.925 |
escape | 8 | 4 | 1.954 |
asdl_generated | 4 | 0 | inf |
cartesian | 0 | 0 | NA |
loops | 0 | 0 | NA |