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 | 0 | 35 | 0.000 |
fib_iter | gen | 8 | 8 | 933 | 0.008 |
modules | gen | 2 | 2 | 187 | 0.009 |
loops | gen | 4 | 3 | 304 | 0.012 |
fib_recursive | gen | 11 | 11 | 887 | 0.012 |
asdl_generated | gen | 11 | 11 | 388 | 0.028 |
containers | gen | 4 | 4 | 116 | 0.033 |
parse | gen | 30 | 13 | 781 | 0.039 |
scoped_resource | gen | 47 | 42 | 1,039 | 0.046 |
files | gen | 7 | 7 | 75 | 0.097 |
tuple_return_value | gen | 19 | 18 | 195 | 0.099 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.152 |
length | gen | 44 | 46 | 209 | 0.212 |
cartesian | gen | 78 | 83 | 361 | 0.217 |
escape | gen | 102 | 87 | 358 | 0.284 |
varargs | gen | 8 | 19 | 24 | 0.323 |
cgi | gen | 254 | 267 | 521 | 0.487 |
control_flow | gen | 205 | 162 | 109 | 1.883 |
pea_hello | gen | NA | NA | 14 | 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.5 | 3.5 | 8.5 | 0.42 |
tuple_return_value | gen | 3.5 | 3.5 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.9 | 9.0 | 0.42 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.8 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.7 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.7 | 8.7 | 0.44 |
length | gen | 3.7 | 3.9 | 8.3 | 0.44 |
cgi | gen | 3.8 | 3.5 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.9 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.5 | 0.45 |
cartesian | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.5 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.4 | 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 | 0 | 12 | 0.000 |
cgi | gen | 0 | 0 | 16 | 0.000 |
fib_iter | gen | 0 | 0 | 16 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 13 | 8 | 0.000 |
scoped_resource | gen | 0 | 4 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 4 | 0 | 16 | 0.258 |
containers | gen | 11 | 11 | 28 | 0.412 |
escape | gen | 4 | 16 | 8 | 0.487 |
classes | gen | 3 | 3 | 4 | 0.830 |
varargs | gen | 58 | 46 | 56 | 1.039 |
cartesian | gen | 12 | 8 | 4 | 3.077 |
pea_hello | gen | NA | NA | 4 | NA |