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 |
containers | gen | 0 | 4 | 129 | 0.000 |
modules | gen | 0 | 0 | 171 | 0.000 |
fib_iter | gen | 4 | 8 | 893 | 0.004 |
fib_recursive | gen | 11 | 7 | 881 | 0.012 |
loops | gen | 4 | 0 | 287 | 0.013 |
asdl_generated | gen | 11 | 8 | 369 | 0.029 |
parse | gen | 30 | 20 | 762 | 0.039 |
scoped_resource | gen | 43 | 42 | 1,024 | 0.042 |
tuple_return_value | gen | 21 | 18 | 186 | 0.111 |
files | gen | 8 | 7 | 72 | 0.111 |
classes | gen | 3 | 3 | 23 | 0.136 |
length | gen | 41 | 45 | 206 | 0.200 |
cartesian | gen | 84 | 82 | 327 | 0.257 |
escape | gen | 102 | 94 | 343 | 0.297 |
cgi | gen | 269 | 265 | 516 | 0.523 |
control_flow | gen | 205 | 156 | 109 | 1.884 |
varargs | gen | 31 | 25 | 16 | 1.947 |
gc_stack_roots | gen | 0 | 0 | 0 | NA |
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.5 | 10.8 | 0.41 |
fib_iter | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
escape | gen | 3.7 | 3.5 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.8 | 7.1 | 0.52 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.8 | 3.4 | 6.9 | 0.55 |
control_flow | gen | 3.8 | 3.9 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.7 | 28.4 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 12 | 0.000 |
classes | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 3 | 12 | 0.000 |
parse | gen | 0 | 8 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 2 | 2 | 12 | 0.151 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.152 |
scoped_resource | gen | 4 | 4 | 12 | 0.329 |
fib_iter | gen | 4 | 0 | 8 | 0.472 |
escape | gen | 4 | 8 | 8 | 0.492 |
varargs | gen | 35 | 41 | 56 | 0.626 |
length | gen | 4 | 0 | 4 | 0.929 |
cartesian | gen | 8 | 4 | 8 | 1.005 |
control_flow | gen | 4 | 4 | 4 | 1.035 |
containers | gen | 15 | 11 | 8 | 1.868 |
cgi | gen | 0 | 4 | 0 | NA |