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 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 174 | 0.000 |
fib_iter | gen | 8 | 8 | 885 | 0.009 |
fib_recursive | gen | 11 | 11 | 881 | 0.012 |
loops | gen | 4 | 3 | 288 | 0.013 |
asdl_generated | gen | 7 | 11 | 382 | 0.019 |
parse | gen | 22 | 27 | 760 | 0.029 |
scoped_resource | gen | 49 | 42 | 1,060 | 0.046 |
containers | gen | 10 | 5 | 109 | 0.095 |
tuple_return_value | gen | 21 | 15 | 206 | 0.100 |
files | gen | 8 | 4 | 64 | 0.119 |
classes | gen | 3 | 0 | 16 | 0.204 |
length | gen | 45 | 40 | 205 | 0.220 |
cartesian | gen | 80 | 84 | 330 | 0.241 |
escape | gen | 104 | 100 | 349 | 0.298 |
varargs | gen | 8 | 12 | 24 | 0.346 |
cgi | gen | 262 | 264 | 508 | 0.515 |
control_flow | gen | 210 | 161 | 108 | 1.950 |
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.3 | 10.7 | 0.42 |
cgi | gen | 3.5 | 3.5 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
escape | gen | 3.7 | 3.5 | 7.1 | 0.52 |
parse | gen | 3.9 | 3.7 | 7.5 | 0.53 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.8 | 6.9 | 0.53 |
files | gen | 3.7 | 3.9 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.8 | 7.1 | 0.54 |
modules | gen | 3.8 | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.9 | 3.8 | 7.2 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.8 | 3.9 | 6.8 | 0.56 |
containers | gen | 28.4 | 28.4 | 47.6 | 0.60 |
varargs | gen | 5.6 | 5.5 | 7.1 | 0.80 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 3 | 16 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
escape | gen | 0 | 4 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 12 | 0.000 |
length | gen | 0 | 4 | 8 | 0.000 |
loops | gen | 0 | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 4 | 12 | 0.000 |
containers | gen | 5 | 10 | 28 | 0.184 |
modules | gen | 2 | 2 | 8 | 0.246 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.465 |
asdl_generated | gen | 4 | 0 | 4 | 0.904 |
parse | gen | 7 | 0 | 8 | 0.906 |
varargs | gen | 58 | 54 | 48 | 1.210 |
cartesian | gen | 12 | 4 | 8 | 1.503 |
cgi | gen | 8 | 4 | 4 | 2.013 |
tuple_return_value | gen | 0 | 4 | 0 | NA |