Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
containers | 0 | 116 | 0.000 |
loops | 0 | 295 | 0.000 |
fib_iter | 8 | 873 | 0.009 |
modules | 2 | 173 | 0.010 |
fib_recursive | 11 | 875 | 0.013 |
asdl_generated | 11 | 375 | 0.028 |
parse | 30 | 766 | 0.039 |
scoped_resource | 43 | 1,032 | 0.042 |
tuple_return_value | 20 | 192 | 0.105 |
files | 7 | 65 | 0.116 |
classes | 3 | 17 | 0.179 |
length | 41 | 207 | 0.196 |
cartesian | 85 | 333 | 0.256 |
escape | 103 | 339 | 0.303 |
cgi | 268 | 504 | 0.533 |
varargs | 20 | 23 | 0.871 |
control_flow | 203 | 113 | 1.797 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.6 | 0.41 |
cgi | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.5 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 7.1 | 0.52 |
fib_recursive | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
escape | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
modules | 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 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
containers | 28.7 | 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 |
cgi | 0 | 8 | 0.000 |
classes | 0 | 13 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 12 | 0.000 |
modules | 0 | 12 | 0.000 |
parse | 0 | 12 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
scoped_resource | 4 | 8 | 0.491 |
cartesian | 4 | 8 | 0.511 |
escape | 4 | 8 | 0.516 |
containers | 16 | 24 | 0.655 |
loops | 4 | 4 | 0.923 |
varargs | 47 | 49 | 0.965 |
control_flow | 4 | 0 | inf |
length | 4 | 0 | inf |