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 | 27 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 16 | 0.000 |
fib_iter | gen | 8 | 8 | 896 | 0.009 |
modules | gen | 2 | 2 | 197 | 0.009 |
asdl_generated | gen | 4 | 11 | 379 | 0.010 |
loops | gen | 4 | 0 | 302 | 0.013 |
fib_recursive | gen | 11 | 11 | 874 | 0.013 |
scoped_resource | gen | 40 | 37 | 1,035 | 0.039 |
parse | gen | 30 | 27 | 777 | 0.039 |
containers | gen | 8 | 7 | 107 | 0.072 |
files | gen | 7 | 7 | 76 | 0.097 |
tuple_return_value | gen | 19 | 15 | 189 | 0.102 |
length | gen | 45 | 46 | 205 | 0.220 |
cartesian | gen | 87 | 86 | 340 | 0.257 |
escape | gen | 96 | 91 | 356 | 0.270 |
cgi | gen | 254 | 267 | 521 | 0.487 |
control_flow | gen | 208 | 161 | 122 | 1.713 |
varargs | gen | 29 | 21 | 16 | 1.794 |
pea_hello | gen | NA | NA | 11 | 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.3 | 0.36 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.4 | 0.41 |
cartesian | gen | 3.5 | 3.7 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.1 | 0.42 |
escape | gen | 3.5 | 3.7 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.8 | 8.4 | 0.44 |
files | gen | 3.7 | 3.7 | 8.4 | 0.44 |
length | gen | 3.7 | 3.8 | 8.4 | 0.44 |
loops | gen | 3.8 | 3.7 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.5 | 8.4 | 0.45 |
containers | gen | 28.4 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 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 |
cgi | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 0 | 16 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 3 | 4 | 0.000 |
parse | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 12 | 0.000 |
containers | gen | 8 | 7 | 36 | 0.217 |
classes | gen | 3 | 0 | 12 | 0.280 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.523 |
varargs | gen | 37 | 45 | 64 | 0.577 |
asdl_generated | gen | 7 | 0 | 12 | 0.602 |
escape | gen | 8 | 12 | 12 | 0.666 |
cartesian | gen | 4 | 0 | 4 | 0.991 |
scoped_resource | gen | 8 | 8 | 4 | 1.996 |
control_flow | gen | 0 | 4 | 0 | NA |
modules | gen | 0 | 0 | 0 | NA |
pea_hello | gen | NA | NA | 7 | NA |