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 |
modules | 0 | 206 | 0.000 |
fib_iter | 4 | 891 | 0.004 |
loops | 4 | 303 | 0.012 |
fib_recursive | 11 | 872 | 0.012 |
asdl_generated | 5 | 374 | 0.014 |
parse | 25 | 762 | 0.032 |
containers | 4 | 100 | 0.038 |
scoped_resource | 47 | 1,035 | 0.046 |
files | 4 | 76 | 0.048 |
tuple_return_value | 20 | 191 | 0.105 |
length | 44 | 196 | 0.225 |
cartesian | 78 | 330 | 0.238 |
escape | 94 | 350 | 0.268 |
cgi | 255 | 511 | 0.499 |
varargs | 27 | 19 | 1.445 |
control_flow | 206 | 110 | 1.873 |
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 |
cgi | 3.5 | 7.1 | 0.50 |
fib_recursive | 3.5 | 6.9 | 0.51 |
parse | 3.9 | 7.6 | 0.52 |
cartesian | 3.7 | 7.1 | 0.52 |
escape | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
modules | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
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.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
asdl_generated | 3.7 | 6.7 | 0.55 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.4 | 7.1 | 0.76 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
fib_recursive | 0 | 12 | 0.000 |
length | 0 | 8 | 0.000 |
loops | 0 | 4 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
containers | 11 | 32 | 0.352 |
classes | 3 | 8 | 0.421 |
fib_iter | 4 | 8 | 0.477 |
parse | 4 | 8 | 0.511 |
asdl_generated | 5 | 8 | 0.665 |
varargs | 39 | 53 | 0.737 |
control_flow | 4 | 4 | 0.972 |
cgi | 4 | 4 | 0.999 |
cartesian | 12 | 4 | 2.924 |
escape | 12 | 4 | 3.037 |
files | 4 | 0 | inf |
modules | 2 | 0 | inf |