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 |
fib_recursive | 7 | 871 | 0.008 |
fib_iter | 8 | 888 | 0.009 |
modules | 2 | 179 | 0.011 |
loops | 4 | 290 | 0.013 |
asdl_generated | 11 | 377 | 0.030 |
parse | 25 | 758 | 0.034 |
scoped_resource | 42 | 1,052 | 0.040 |
files | 8 | 76 | 0.102 |
tuple_return_value | 20 | 188 | 0.107 |
containers | 16 | 117 | 0.133 |
length | 45 | 202 | 0.221 |
cartesian | 83 | 333 | 0.249 |
escape | 107 | 348 | 0.308 |
cgi | 259 | 513 | 0.504 |
varargs | 20 | 16 | 1.223 |
control_flow | 205 | 109 | 1.881 |
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.8 | 7.6 | 0.50 |
files | 3.5 | 6.9 | 0.51 |
loops | 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 |
fib_iter | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
length | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.7 | 6.8 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
escape | 3.7 | 6.7 | 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 |
asdl_generated | 0 | 4 | 0.000 |
containers | 0 | 20 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 4 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
parse | 4 | 12 | 0.354 |
scoped_resource | 4 | 12 | 0.354 |
classes | 4 | 8 | 0.478 |
varargs | 47 | 56 | 0.838 |
fib_recursive | 4 | 4 | 0.905 |
control_flow | 4 | 4 | 0.977 |
cgi | 8 | 4 | 1.987 |
cartesian | 8 | 4 | 2.065 |
files | 0 | 0 | NA |