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 |
fib_iter | gen | 7 | 8 | 897 | 0.008 |
modules | gen | 2 | 2 | 177 | 0.010 |
fib_recursive | gen | 11 | 11 | 902 | 0.012 |
loops | gen | 4 | 3 | 303 | 0.012 |
asdl_generated | gen | 11 | 11 | 386 | 0.028 |
scoped_resource | gen | 36 | 42 | 1,059 | 0.034 |
parse | gen | 29 | 27 | 770 | 0.038 |
containers | gen | 10 | 11 | 120 | 0.086 |
files | gen | 7 | 4 | 75 | 0.097 |
tuple_return_value | gen | 20 | 15 | 199 | 0.102 |
classes | gen | 3 | 3 | 24 | 0.135 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.146 |
length | gen | 41 | 44 | 220 | 0.186 |
cartesian | gen | 87 | 86 | 332 | 0.261 |
escape | gen | 100 | 103 | 361 | 0.278 |
cgi | gen | 265 | 253 | 523 | 0.506 |
varargs | gen | 19 | 8 | 36 | 0.541 |
control_flow | gen | 211 | 167 | 110 | 1.917 |
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.6 | 12.3 | 0.35 |
escape | gen | 3.5 | 3.7 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
scoped_resource | gen | 3.5 | 3.7 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
parse | gen | 3.9 | 3.8 | 9.0 | 0.43 |
fib_recursive | gen | 3.7 | 3.5 | 8.4 | 0.44 |
control_flow | gen | 3.8 | 3.7 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
length | gen | 3.8 | 3.7 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.5 | 28.8 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.4 | 8.5 | 0.65 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 0 | 16 | 0.000 |
control_flow | gen | 0 | 0 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 0 | 16 | 0.000 |
containers | gen | 5 | 4 | 20 | 0.258 |
cgi | gen | 4 | 0 | 12 | 0.335 |
cartesian | gen | 4 | 4 | 8 | 0.515 |
escape | gen | 4 | 0 | 4 | 1.001 |
varargs | gen | 46 | 58 | 44 | 1.061 |
scoped_resource | gen | 12 | 4 | 4 | 2.991 |
length | gen | 4 | 0 | 0 | inf |
tuple_return_value | gen | 0 | 4 | 0 | NA |