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 | 2 | 11 | 0.000 |
fib_iter | gen | 3 | 5 | 741 | 0.004 |
modules | gen | 1 | 1 | 127 | 0.011 |
fib_recursive | gen | 8 | 8 | 633 | 0.012 |
loops | gen | 3 | 2 | 216 | 0.013 |
asdl_generated | gen | 8 | 8 | 277 | 0.028 |
parse | gen | 20 | 15 | 576 | 0.035 |
files | gen | 3 | 0 | 58 | 0.046 |
scoped_resource | gen | 36 | 32 | 724 | 0.049 |
containers | gen | 7 | 9 | 90 | 0.076 |
tuple_return_value | gen | 11 | 10 | 139 | 0.078 |
gc_stack_roots | gen | 1 | 1 | 9 | 0.150 |
length | gen | 31 | 32 | 149 | 0.210 |
cartesian | gen | 57 | 57 | 241 | 0.238 |
varargs | gen | 4 | 11 | 15 | 0.249 |
escape | gen | 71 | 74 | 274 | 0.259 |
cgi | gen | 195 | 192 | 357 | 0.545 |
control_flow | gen | 147 | 114 | 81 | 1.827 |
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.6 | 4.5 | 12.3 | 0.37 |
gc_stack_roots | gen | 3.6 | 3.6 | 8.7 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.6 | 0.42 |
cartesian | gen | 3.7 | 3.7 | 8.6 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.8 | 3.8 | 8.7 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
parse | gen | 4.0 | 3.8 | 9.0 | 0.44 |
fib_recursive | gen | 3.8 | 3.8 | 8.6 | 0.44 |
modules | gen | 3.8 | 3.8 | 8.6 | 0.44 |
fib_iter | gen | 3.8 | 3.9 | 8.6 | 0.44 |
loops | gen | 3.8 | 3.8 | 8.7 | 0.44 |
tuple_return_value | gen | 3.8 | 3.9 | 8.6 | 0.44 |
files | gen | 3.8 | 3.8 | 8.6 | 0.44 |
length | gen | 3.8 | 3.8 | 8.5 | 0.44 |
control_flow | gen | 3.9 | 3.9 | 8.7 | 0.45 |
containers | gen | 28.5 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.6 | 8.5 | 0.66 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 2 | 0 | 15 | 0.162 |
containers | gen | 7 | 4 | 12 | 0.560 |
cartesian | gen | 8 | 4 | 12 | 0.634 |
fib_iter | gen | 3 | 0 | 4 | 0.684 |
escape | gen | 4 | 0 | 4 | 0.905 |
cgi | gen | 4 | 0 | 4 | 0.990 |
varargs | gen | 42 | 34 | 39 | 1.096 |
files | gen | 3 | 5 | 0 | inf |
tuple_return_value | gen | 4 | 3 | 0 | inf |
parse | gen | 0 | 4 | 0 | NA |