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 | 4 | 4 | 900 | 0.004 |
fib_recursive | gen | 11 | 7 | 952 | 0.011 |
modules | gen | 2 | 2 | 183 | 0.011 |
loops | gen | 4 | 3 | 300 | 0.013 |
asdl_generated | gen | 11 | 7 | 381 | 0.029 |
containers | gen | 4 | 7 | 111 | 0.036 |
parse | gen | 29 | 27 | 778 | 0.038 |
scoped_resource | gen | 48 | 45 | 1,043 | 0.046 |
tuple_return_value | gen | 20 | 18 | 192 | 0.107 |
files | gen | 8 | 4 | 71 | 0.108 |
classes | gen | 3 | 0 | 24 | 0.139 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.158 |
length | gen | 41 | 44 | 207 | 0.198 |
cartesian | gen | 88 | 85 | 339 | 0.260 |
escape | gen | 97 | 101 | 360 | 0.269 |
cgi | gen | 261 | 268 | 535 | 0.488 |
varargs | gen | 27 | 25 | 28 | 0.971 |
control_flow | gen | 206 | 159 | 113 | 1.829 |
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.2 | 12.3 | 0.36 |
parse | gen | 3.7 | 3.8 | 9.0 | 0.41 |
cartesian | gen | 3.5 | 3.5 | 8.5 | 0.42 |
length | gen | 3.5 | 3.7 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.8 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.5 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.5 | 8.4 | 0.44 |
fib_iter | gen | 3.8 | 3.5 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.5 | 0.45 |
cgi | gen | 3.8 | 3.7 | 8.4 | 0.45 |
control_flow | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_recursive | gen | 3.8 | 3.5 | 8.4 | 0.45 |
loops | gen | 3.9 | 3.8 | 8.5 | 0.46 |
containers | gen | 28.5 | 28.7 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.5 | 0.65 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 12 | 0.000 |
classes | gen | 0 | 3 | 16 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 4 | 13 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 0 | 16 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 12 | 7 | 32 | 0.374 |
control_flow | gen | 4 | 0 | 8 | 0.492 |
length | gen | 4 | 0 | 8 | 0.515 |
escape | gen | 8 | 4 | 12 | 0.645 |
varargs | gen | 39 | 41 | 52 | 0.747 |
fib_iter | gen | 4 | 4 | 4 | 0.971 |
cgi | gen | 8 | 0 | 8 | 0.991 |
cartesian | gen | 4 | 0 | 0 | inf |