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 | 19 | 0.000 |
containers | 0 | 123 | 0.000 |
loops | 0 | 292 | 0.000 |
fib_iter | 4 | 907 | 0.004 |
modules | 2 | 171 | 0.011 |
fib_recursive | 11 | 875 | 0.012 |
asdl_generated | 8 | 408 | 0.018 |
parse | 29 | 747 | 0.039 |
scoped_resource | 43 | 1,030 | 0.042 |
tuple_return_value | 16 | 187 | 0.086 |
files | 8 | 69 | 0.110 |
length | 46 | 209 | 0.218 |
cartesian | 86 | 336 | 0.257 |
escape | 96 | 344 | 0.278 |
varargs | 8 | 16 | 0.485 |
cgi | 262 | 501 | 0.524 |
control_flow | 205 | 106 | 1.933 |
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.9 | 7.7 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
modules | 3.5 | 6.9 | 0.51 |
fib_iter | 3.7 | 7.1 | 0.52 |
loops | 3.8 | 7.2 | 0.53 |
asdl_generated | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 11 | 0.000 |
length | 0 | 4 | 0.000 |
modules | 0 | 12 | 0.000 |
parse | 0 | 16 | 0.000 |
classes | 3 | 12 | 0.287 |
loops | 4 | 8 | 0.495 |
cgi | 4 | 8 | 0.496 |
control_flow | 4 | 8 | 0.502 |
containers | 16 | 20 | 0.781 |
scoped_resource | 4 | 4 | 0.977 |
tuple_return_value | 4 | 4 | 1.011 |
cartesian | 4 | 4 | 1.028 |
varargs | 58 | 56 | 1.039 |
escape | 12 | 8 | 1.495 |
asdl_generated | 4 | 0 | inf |
fib_iter | 4 | 0 | inf |