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 |
modules | gen | 0 | 0 | 190 | 0.000 |
fib_iter | gen | 8 | 8 | 897 | 0.008 |
fib_recursive | gen | 11 | 11 | 878 | 0.012 |
loops | gen | 4 | 3 | 302 | 0.012 |
asdl_generated | gen | 11 | 7 | 385 | 0.028 |
parse | gen | 23 | 22 | 779 | 0.029 |
scoped_resource | gen | 48 | 42 | 1,033 | 0.047 |
containers | gen | 8 | 14 | 123 | 0.065 |
tuple_return_value | gen | 15 | 18 | 197 | 0.078 |
files | gen | 7 | 8 | 71 | 0.102 |
varargs | gen | 4 | 4 | 29 | 0.134 |
gc_stack_roots | gen | 2 | 2 | 11 | 0.148 |
length | gen | 36 | 43 | 215 | 0.168 |
classes | gen | 3 | 0 | 19 | 0.171 |
cartesian | gen | 81 | 81 | 346 | 0.235 |
escape | gen | 104 | 95 | 354 | 0.294 |
cgi | gen | 269 | 267 | 505 | 0.533 |
control_flow | gen | 204 | 161 | 108 | 1.886 |
pea_hello | gen | NA | NA | 4 | 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 |
cartesian | gen | 3.4 | 3.5 | 8.4 | 0.41 |
asdl_generated | gen | 3.5 | 3.5 | 8.4 | 0.42 |
scoped_resource | gen | 3.5 | 3.7 | 8.4 | 0.42 |
length | gen | 3.7 | 3.7 | 8.5 | 0.43 |
parse | gen | 3.9 | 3.9 | 9.1 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_iter | gen | 3.7 | 3.8 | 8.4 | 0.44 |
fib_recursive | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.9 | 8.5 | 0.45 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.9 | 8.4 | 0.45 |
escape | gen | 3.8 | 3.7 | 8.4 | 0.45 |
files | gen | 3.8 | 3.8 | 8.1 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.2 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.4 | 0.67 |
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 | 4 | 8 | 0.000 |
cgi | gen | 0 | 0 | 16 | 0.000 |
classes | gen | 0 | 3 | 19 | 0.000 |
escape | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 4 | 8 | 0.000 |
control_flow | gen | 4 | 0 | 12 | 0.333 |
containers | gen | 8 | 0 | 20 | 0.391 |
modules | gen | 2 | 2 | 4 | 0.450 |
parse | gen | 8 | 4 | 8 | 0.956 |
varargs | gen | 62 | 61 | 53 | 1.157 |
length | gen | 8 | 4 | 4 | 2.015 |
cartesian | gen | 8 | 4 | 0 | inf |
tuple_return_value | gen | 4 | 0 | 0 | inf |
pea_hello | gen | NA | NA | 13 | NA |