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 | 25 | 0.000 |
fib_iter | gen | 8 | 8 | 897 | 0.008 |
modules | gen | 2 | 2 | 189 | 0.010 |
fib_recursive | gen | 11 | 11 | 889 | 0.012 |
loops | gen | 4 | 3 | 297 | 0.013 |
asdl_generated | gen | 7 | 11 | 383 | 0.019 |
parse | gen | 26 | 27 | 794 | 0.033 |
scoped_resource | gen | 44 | 43 | 1,029 | 0.043 |
containers | gen | 8 | 3 | 120 | 0.065 |
tuple_return_value | gen | 15 | 18 | 193 | 0.080 |
files | gen | 7 | 7 | 71 | 0.103 |
length | gen | 34 | 45 | 219 | 0.154 |
gc_stack_roots | gen | 2 | 0 | 12 | 0.155 |
cartesian | gen | 86 | 82 | 340 | 0.252 |
escape | gen | 105 | 95 | 358 | 0.294 |
cgi | gen | 270 | 268 | 524 | 0.516 |
varargs | gen | 19 | 23 | 28 | 0.689 |
control_flow | gen | 208 | 167 | 116 | 1.788 |
pea_hello | gen | NA | NA | 7 | 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.3 | 4.3 | 12.5 | 0.35 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.5 | 0.40 |
parse | gen | 3.7 | 3.9 | 9.0 | 0.41 |
cgi | gen | 3.7 | 3.5 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.7 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.7 | 8.4 | 0.44 |
scoped_resource | gen | 3.7 | 3.8 | 8.4 | 0.44 |
cartesian | gen | 3.8 | 3.5 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.7 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.9 | 8.5 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
length | gen | 3.8 | 3.9 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.4 | 0.45 |
modules | gen | 3.9 | 3.8 | 8.5 | 0.46 |
fib_iter | gen | 3.9 | 3.7 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.6 | 48.9 | 0.58 |
varargs | gen | 5.5 | 5.4 | 8.5 | 0.65 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
escape | gen | 0 | 8 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 4 | 0 | 16 | 0.236 |
classes | gen | 3 | 0 | 13 | 0.255 |
containers | gen | 8 | 10 | 24 | 0.327 |
asdl_generated | gen | 4 | 0 | 8 | 0.450 |
tuple_return_value | gen | 4 | 0 | 8 | 0.478 |
cgi | gen | 4 | 0 | 8 | 0.497 |
control_flow | gen | 4 | 0 | 8 | 0.499 |
scoped_resource | gen | 4 | 4 | 8 | 0.501 |
varargs | gen | 46 | 42 | 52 | 0.890 |
cartesian | gen | 4 | 4 | 4 | 1.020 |
length | gen | 11 | 0 | 8 | 1.410 |
pea_hello | gen | NA | NA | 11 | NA |