Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 3 | 26 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 16 | 0.000 |
loops | gen | 0 | 3 | 294 | 0.000 |
modules | gen | 0 | 2 | 194 | 0.000 |
fib_iter | gen | 8 | 8 | 935 | 0.008 |
fib_recursive | gen | 11 | 7 | 884 | 0.012 |
asdl_generated | gen | 7 | 11 | 381 | 0.019 |
containers | gen | 4 | 7 | 121 | 0.032 |
parse | gen | 26 | 27 | 787 | 0.034 |
scoped_resource | gen | 44 | 41 | 1,034 | 0.042 |
tuple_return_value | gen | 15 | 15 | 198 | 0.076 |
files | gen | 7 | 4 | 72 | 0.102 |
varargs | gen | 8 | 12 | 40 | 0.195 |
length | gen | 45 | 42 | 203 | 0.221 |
cartesian | gen | 91 | 84 | 339 | 0.268 |
escape | gen | 100 | 98 | 357 | 0.281 |
cgi | gen | 254 | 263 | 527 | 0.482 |
control_flow | gen | 209 | 158 | 116 | 1.799 |
pea_hello | gen | NA | NA | 9 | NA |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 4.5 | 4.5 | 12.2 | 0.37 |
escape | gen | 3.5 | 3.7 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.0 | 0.42 |
cgi | gen | 3.5 | 3.5 | 8.3 | 0.43 |
control_flow | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_iter | gen | 3.7 | 3.8 | 8.5 | 0.43 |
gc_stack_roots | gen | 3.7 | 3.4 | 8.5 | 0.43 |
loops | gen | 3.7 | 3.8 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
tuple_return_value | gen | 3.7 | 3.7 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.5 | 8.4 | 0.44 |
cartesian | gen | 3.7 | 3.4 | 8.4 | 0.44 |
scoped_resource | gen | 3.7 | 3.5 | 8.4 | 0.44 |
fib_recursive | gen | 3.8 | 3.8 | 8.4 | 0.45 |
files | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.8 | 28.7 | 49.1 | 0.59 |
varargs | gen | 5.5 | 5.4 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cartesian | gen | 0 | 0 | 8 | 0.000 |
cgi | gen | 0 | 4 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 4 | 12 | 0.000 |
length | gen | 0 | 4 | 12 | 0.000 |
classes | gen | 3 | 0 | 13 | 0.247 |
modules | gen | 2 | 0 | 4 | 0.439 |
asdl_generated | gen | 4 | 0 | 8 | 0.450 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.468 |
loops | gen | 4 | 0 | 8 | 0.490 |
scoped_resource | gen | 4 | 4 | 8 | 0.495 |
containers | gen | 12 | 7 | 20 | 0.574 |
tuple_return_value | gen | 4 | 4 | 4 | 0.932 |
parse | gen | 4 | 0 | 4 | 0.947 |
escape | gen | 4 | 4 | 4 | 1.000 |
varargs | gen | 58 | 54 | 40 | 1.462 |
pea_hello | gen | NA | NA | 9 | NA |