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 | 32 | 0.000 |
fib_iter | gen | 4 | 4 | 895 | 0.004 |
fib_recursive | gen | 7 | 11 | 876 | 0.008 |
modules | gen | 2 | 2 | 187 | 0.009 |
loops | gen | 4 | 3 | 307 | 0.012 |
asdl_generated | gen | 7 | 11 | 382 | 0.019 |
parse | gen | 26 | 27 | 779 | 0.033 |
scoped_resource | gen | 40 | 38 | 1,057 | 0.038 |
containers | gen | 10 | 4 | 129 | 0.081 |
tuple_return_value | gen | 17 | 14 | 186 | 0.092 |
gc_stack_roots | gen | 2 | 2 | 16 | 0.109 |
files | gen | 8 | 8 | 70 | 0.111 |
length | gen | 41 | 28 | 220 | 0.186 |
cartesian | gen | 90 | 72 | 333 | 0.269 |
escape | gen | 101 | 99 | 353 | 0.286 |
cgi | gen | 247 | 260 | 532 | 0.464 |
varargs | gen | 27 | 23 | 24 | 1.112 |
control_flow | gen | 208 | 157 | 106 | 1.957 |
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 | 12.2 | 0.37 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.4 | 0.41 |
cgi | gen | 3.5 | 3.7 | 8.5 | 0.42 |
fib_iter | gen | 3.5 | 3.7 | 8.5 | 0.42 |
fib_recursive | gen | 3.5 | 3.8 | 8.5 | 0.42 |
scoped_resource | gen | 3.5 | 3.7 | 8.5 | 0.42 |
cartesian | gen | 3.5 | 3.5 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.5 | 8.5 | 0.43 |
parse | gen | 3.8 | 3.7 | 8.8 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.9 | 8.5 | 0.46 |
files | gen | 3.9 | 3.7 | 8.4 | 0.47 |
tuple_return_value | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.4 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.4 | 0.66 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
control_flow | gen | 0 | 4 | 16 | 0.000 |
files | gen | 0 | 0 | 15 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 4 | 0 | 16 | 0.224 |
fib_iter | gen | 4 | 4 | 16 | 0.236 |
tuple_return_value | gen | 3 | 5 | 12 | 0.284 |
asdl_generated | gen | 4 | 0 | 12 | 0.301 |
containers | gen | 5 | 11 | 16 | 0.323 |
escape | gen | 4 | 4 | 12 | 0.335 |
classes | gen | 3 | 0 | 8 | 0.410 |
parse | gen | 4 | 0 | 8 | 0.457 |
cartesian | gen | 4 | 16 | 8 | 0.513 |
scoped_resource | gen | 8 | 8 | 12 | 0.666 |
varargs | gen | 39 | 43 | 57 | 0.681 |
length | gen | 4 | 16 | 4 | 1.022 |
cgi | gen | 8 | 8 | 0 | inf |
loops | gen | 0 | 0 | 0 | NA |