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 |
modules | gen | 0 | 0 | 177 | 0.000 |
fib_recursive | gen | 7 | 11 | 882 | 0.008 |
fib_iter | gen | 8 | 8 | 889 | 0.009 |
loops | gen | 4 | 0 | 291 | 0.013 |
parse | gen | 22 | 23 | 777 | 0.028 |
asdl_generated | gen | 11 | 12 | 379 | 0.028 |
scoped_resource | gen | 36 | 42 | 1,041 | 0.034 |
containers | gen | 8 | 7 | 108 | 0.072 |
files | gen | 7 | 4 | 74 | 0.100 |
tuple_return_value | gen | 21 | 11 | 187 | 0.110 |
gc_stack_roots | gen | 2 | 0 | 14 | 0.129 |
length | gen | 44 | 37 | 207 | 0.214 |
cartesian | gen | 84 | 84 | 325 | 0.259 |
escape | gen | 100 | 95 | 357 | 0.280 |
varargs | gen | 4 | 4 | 12 | 0.329 |
cgi | gen | 255 | 253 | 515 | 0.495 |
control_flow | gen | 203 | 160 | 108 | 1.878 |
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 | 10.8 | 0.41 |
parse | gen | 3.8 | 3.7 | 7.5 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
length | gen | 3.7 | 3.8 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
tuple_return_value | gen | 3.7 | 3.9 | 7.1 | 0.52 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.8 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.5 | 6.9 | 0.53 |
control_flow | gen | 3.8 | 3.8 | 6.9 | 0.55 |
escape | gen | 3.8 | 3.7 | 6.9 | 0.55 |
files | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.4 | 28.3 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 5 | 0.000 |
length | gen | 0 | 7 | 4 | 0.000 |
loops | gen | 0 | 3 | 4 | 0.000 |
tuple_return_value | gen | 0 | 7 | 4 | 0.000 |
containers | gen | 8 | 7 | 28 | 0.276 |
modules | gen | 2 | 2 | 4 | 0.446 |
control_flow | gen | 4 | 0 | 8 | 0.497 |
escape | gen | 4 | 8 | 8 | 0.503 |
classes | gen | 3 | 0 | 4 | 0.737 |
fib_recursive | gen | 4 | 0 | 4 | 0.897 |
parse | gen | 7 | 4 | 8 | 0.910 |
varargs | gen | 62 | 61 | 59 | 1.052 |
scoped_resource | gen | 12 | 4 | 8 | 1.493 |
cartesian | gen | 8 | 4 | 4 | 2.000 |