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 |
loops | gen | 0 | 3 | 288 | 0.000 |
fib_iter | gen | 8 | 8 | 905 | 0.008 |
modules | gen | 2 | 2 | 206 | 0.009 |
fib_recursive | gen | 11 | 11 | 897 | 0.012 |
asdl_generated | gen | 11 | 11 | 388 | 0.028 |
containers | gen | 4 | 4 | 108 | 0.036 |
parse | gen | 30 | 23 | 784 | 0.039 |
scoped_resource | gen | 40 | 46 | 1,030 | 0.039 |
tuple_return_value | gen | 15 | 15 | 193 | 0.080 |
files | gen | 7 | 8 | 75 | 0.096 |
classes | gen | 3 | 4 | 27 | 0.122 |
gc_stack_roots | gen | 2 | 2 | 14 | 0.123 |
length | gen | 29 | 41 | 209 | 0.139 |
escape | gen | 86 | 95 | 353 | 0.243 |
cartesian | gen | 88 | 86 | 321 | 0.273 |
cgi | gen | 246 | 260 | 533 | 0.461 |
varargs | gen | 23 | 23 | 24 | 0.978 |
control_flow | gen | 212 | 164 | 110 | 1.935 |
pea_hello | gen | NA | NA | 15 | 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.5 | 0.36 |
parse | gen | 3.8 | 3.9 | 9.1 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
modules | gen | 3.7 | 3.9 | 8.7 | 0.42 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cgi | 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 |
length | gen | 3.7 | 3.8 | 8.4 | 0.44 |
tuple_return_value | gen | 3.7 | 3.9 | 8.4 | 0.44 |
loops | gen | 3.8 | 3.9 | 8.7 | 0.44 |
control_flow | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.7 | 8.4 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.4 | 0.45 |
containers | gen | 28.6 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 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 |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 0 | 11 | 0.000 |
control_flow | gen | 0 | 0 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 5 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 4 | 4 | 0.000 |
cartesian | gen | 4 | 0 | 20 | 0.201 |
loops | gen | 4 | 0 | 16 | 0.241 |
containers | gen | 12 | 11 | 36 | 0.327 |
scoped_resource | gen | 8 | 0 | 20 | 0.401 |
tuple_return_value | gen | 4 | 4 | 8 | 0.478 |
varargs | gen | 43 | 42 | 56 | 0.768 |
length | gen | 17 | 4 | 12 | 1.399 |
cgi | gen | 8 | 8 | 4 | 1.994 |
escape | gen | 19 | 8 | 8 | 2.431 |
pea_hello | gen | NA | NA | 4 | NA |