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 | 100 | 0.000 |
modules | 0 | 179 | 0.000 |
fib_iter | 8 | 889 | 0.008 |
fib_recursive | 11 | 894 | 0.012 |
loops | 4 | 292 | 0.013 |
asdl_generated | 11 | 374 | 0.029 |
parse | 22 | 765 | 0.029 |
scoped_resource | 35 | 1,015 | 0.034 |
tuple_return_value | 13 | 187 | 0.072 |
files | 8 | 64 | 0.120 |
classes | 3 | 23 | 0.138 |
length | 41 | 209 | 0.194 |
cartesian | 78 | 319 | 0.245 |
escape | 103 | 349 | 0.294 |
varargs | 8 | 20 | 0.399 |
cgi | 270 | 512 | 0.527 |
control_flow | 207 | 110 | 1.880 |
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.9 | 7.7 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
files | 3.5 | 6.9 | 0.51 |
escape | 3.7 | 7.1 | 0.52 |
tuple_return_value | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
control_flow | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
cartesian | 3.7 | 6.8 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
scoped_resource | 3.8 | 6.9 | 0.55 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
cgi | 0 | 4 | 0.000 |
classes | 0 | 8 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
files | 0 | 12 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 2 | 8 | 0.223 |
containers | 15 | 36 | 0.428 |
parse | 7 | 16 | 0.468 |
control_flow | 4 | 8 | 0.488 |
escape | 4 | 8 | 0.497 |
tuple_return_value | 7 | 8 | 0.843 |
scoped_resource | 12 | 12 | 0.973 |
length | 4 | 4 | 1.008 |
cartesian | 12 | 12 | 1.030 |
varargs | 60 | 52 | 1.152 |
fib_recursive | 0 | 0 | NA |