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 | 0 | 24 | 0.000 |
modules | gen | 0 | 2 | 178 | 0.000 |
loops | gen | 4 | 0 | 712 | 0.006 |
fib_iter | gen | 8 | 8 | 906 | 0.008 |
fib_recursive | gen | 11 | 11 | 899 | 0.012 |
asdl_generated | gen | 7 | 11 | 384 | 0.019 |
parse | gen | 29 | 23 | 775 | 0.037 |
scoped_resource | gen | 48 | 46 | 1,049 | 0.046 |
containers | gen | 12 | 15 | 124 | 0.097 |
tuple_return_value | gen | 20 | 15 | 200 | 0.103 |
files | gen | 7 | 4 | 69 | 0.107 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.143 |
length | gen | 44 | 40 | 221 | 0.201 |
cartesian | gen | 71 | 76 | 339 | 0.209 |
escape | gen | 97 | 101 | 354 | 0.274 |
cgi | gen | 252 | 256 | 522 | 0.483 |
varargs | gen | 20 | 21 | 20 | 0.969 |
control_flow | gen | 210 | 162 | 114 | 1.835 |
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 | 12.4 | 0.36 |
asdl_generated | gen | 3.5 | 3.7 | 8.5 | 0.42 |
cartesian | gen | 3.5 | 3.7 | 8.5 | 0.42 |
length | gen | 3.5 | 3.8 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.0 | 0.42 |
cgi | gen | 3.5 | 3.5 | 8.4 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
fib_iter | gen | 3.7 | 3.8 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.5 | 8.5 | 0.43 |
tuple_return_value | gen | 3.7 | 3.8 | 8.5 | 0.43 |
files | gen | 3.8 | 3.9 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
escape | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_recursive | gen | 3.8 | 3.5 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.7 | 8.4 | 0.45 |
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 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 4 | 16 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 4 | 4 | 0.000 |
loops | gen | 0 | 3 | 8 | 0.000 |
parse | gen | 0 | 4 | 16 | 0.000 |
scoped_resource | gen | 0 | 0 | 12 | 0.000 |
modules | gen | 2 | 0 | 12 | 0.151 |
containers | gen | 4 | 0 | 24 | 0.166 |
classes | gen | 3 | 4 | 16 | 0.207 |
cgi | gen | 4 | 0 | 8 | 0.502 |
varargs | gen | 47 | 46 | 61 | 0.775 |
asdl_generated | gen | 4 | 0 | 4 | 0.917 |
escape | gen | 8 | 4 | 8 | 0.974 |
cartesian | gen | 20 | 12 | 0 | inf |
fib_recursive | gen | 0 | 0 | 0 | NA |
tuple_return_value | gen | 0 | 4 | 0 | NA |