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 | 114 | 0.000 |
fib_iter | 8 | 890 | 0.008 |
asdl_generated | 4 | 380 | 0.009 |
modules | 2 | 177 | 0.010 |
fib_recursive | 11 | 922 | 0.012 |
loops | 4 | 286 | 0.013 |
parse | 29 | 767 | 0.038 |
scoped_resource | 44 | 1,086 | 0.040 |
tuple_return_value | 13 | 187 | 0.072 |
files | 7 | 75 | 0.099 |
classes | 4 | 24 | 0.148 |
length | 33 | 212 | 0.158 |
cartesian | 86 | 330 | 0.261 |
escape | 103 | 350 | 0.294 |
cgi | 261 | 509 | 0.512 |
control_flow | 205 | 108 | 1.905 |
varargs | 20 | 4 | 5.143 |
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.6 | 0.42 |
parse | 3.7 | 7.6 | 0.48 |
asdl_generated | 3.5 | 6.9 | 0.51 |
fib_iter | 3.7 | 7.1 | 0.52 |
cartesian | 3.5 | 6.8 | 0.52 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
loops | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
modules | 3.9 | 6.9 | 0.57 |
control_flow | 3.9 | 6.8 | 0.58 |
containers | 28.5 | 48.0 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 4 | 12 | 0.330 |
cgi | 4 | 12 | 0.336 |
cartesian | 4 | 12 | 0.344 |
control_flow | 4 | 8 | 0.504 |
varargs | 45 | 68 | 0.665 |
containers | 15 | 20 | 0.766 |
tuple_return_value | 7 | 8 | 0.843 |
asdl_generated | 7 | 4 | 1.784 |
length | 11 | 4 | 2.785 |
escape | 4 | 0 | inf |
files | 0 | 0 | NA |