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 | 888 | 0.008 |
fib_recursive | 11 | 888 | 0.012 |
loops | 4 | 285 | 0.013 |
asdl_generated | 7 | 377 | 0.019 |
parse | 26 | 758 | 0.034 |
scoped_resource | 43 | 1,023 | 0.042 |
tuple_return_value | 12 | 192 | 0.063 |
files | 7 | 71 | 0.103 |
containers | 11 | 107 | 0.107 |
length | 40 | 203 | 0.197 |
classes | 3 | 16 | 0.206 |
cartesian | 78 | 332 | 0.234 |
escape | 94 | 354 | 0.266 |
cgi | 251 | 513 | 0.489 |
control_flow | 205 | 113 | 1.815 |
varargs | 27 | 12 | 2.303 |
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 |
fib_iter | 3.5 | 6.9 | 0.51 |
control_flow | 3.7 | 7.1 | 0.52 |
length | 3.7 | 7.1 | 0.52 |
loops | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.8 | 7.1 | 0.54 |
escape | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.7 | 0.57 |
containers | 28.7 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 16 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
containers | 4 | 28 | 0.137 |
modules | 2 | 12 | 0.152 |
scoped_resource | 4 | 12 | 0.329 |
parse | 4 | 8 | 0.530 |
varargs | 39 | 59 | 0.658 |
asdl_generated | 4 | 4 | 0.924 |
control_flow | 4 | 4 | 0.977 |
length | 4 | 4 | 1.003 |
cgi | 12 | 8 | 1.489 |
escape | 12 | 8 | 1.545 |
cartesian | 12 | 4 | 3.071 |
tuple_return_value | 8 | 0 | inf |