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 | 179 | 0.000 |
fib_iter | 8 | 891 | 0.008 |
fib_recursive | 11 | 900 | 0.012 |
loops | 4 | 296 | 0.012 |
asdl_generated | 11 | 385 | 0.028 |
containers | 4 | 110 | 0.035 |
parse | 29 | 770 | 0.038 |
scoped_resource | 44 | 1,047 | 0.042 |
tuple_return_value | 16 | 185 | 0.087 |
files | 8 | 66 | 0.116 |
length | 41 | 207 | 0.198 |
classes | 3 | 12 | 0.280 |
cartesian | 91 | 321 | 0.283 |
escape | 102 | 352 | 0.291 |
varargs | 16 | 32 | 0.487 |
cgi | 269 | 520 | 0.518 |
control_flow | 210 | 106 | 1.981 |
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.5 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
cgi | 3.8 | 6.9 | 0.55 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
scoped_resource | 3.8 | 6.9 | 0.55 |
loops | 3.9 | 7.1 | 0.56 |
containers | 28.5 | 47.8 | 0.59 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
classes | 0 | 19 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
files | 0 | 12 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 4 | 12 | 0.331 |
modules | 2 | 4 | 0.451 |
containers | 11 | 24 | 0.483 |
escape | 4 | 8 | 0.492 |
tuple_return_value | 4 | 8 | 0.509 |
length | 4 | 4 | 0.935 |
varargs | 51 | 41 | 1.267 |
asdl_generated | 0 | 0 | NA |
cgi | 0 | 0 | NA |
fib_recursive | 0 | 0 | NA |
loops | 0 | 0 | NA |