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 | 27 | 0.000 |
fib_iter | gen | 4 | 8 | 899 | 0.004 |
fib_recursive | gen | 7 | 11 | 876 | 0.008 |
modules | gen | 2 | 2 | 175 | 0.010 |
loops | gen | 4 | 3 | 295 | 0.013 |
asdl_generated | gen | 7 | 11 | 392 | 0.018 |
parse | gen | 21 | 27 | 779 | 0.027 |
scoped_resource | gen | 39 | 42 | 1,031 | 0.038 |
files | gen | 4 | 8 | 67 | 0.059 |
containers | gen | 8 | 4 | 111 | 0.072 |
tuple_return_value | gen | 21 | 14 | 184 | 0.113 |
length | gen | 36 | 45 | 205 | 0.176 |
cartesian | gen | 86 | 82 | 323 | 0.267 |
escape | gen | 106 | 101 | 352 | 0.302 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.421 |
cgi | gen | 246 | 259 | 512 | 0.481 |
varargs | gen | 20 | 12 | 23 | 0.892 |
control_flow | gen | 213 | 158 | 111 | 1.914 |
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.7 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 7.1 | 0.48 |
parse | gen | 3.8 | 3.7 | 7.6 | 0.50 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.8 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.8 | 6.9 | 0.53 |
control_flow | gen | 3.8 | 3.9 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.9 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
loops | gen | 3.9 | 3.7 | 7.1 | 0.56 |
files | gen | 3.8 | 3.8 | 6.8 | 0.56 |
fib_iter | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.5 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
control_flow | gen | 0 | 4 | 4 | 0.000 |
escape | gen | 0 | 8 | 8 | 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 |
tuple_return_value | gen | 0 | 5 | 12 | 0.000 |
containers | gen | 8 | 11 | 28 | 0.288 |
fib_recursive | gen | 4 | 0 | 12 | 0.300 |
files | gen | 4 | 0 | 12 | 0.332 |
fib_iter | gen | 4 | 0 | 8 | 0.478 |
cartesian | gen | 4 | 4 | 8 | 0.515 |
scoped_resource | gen | 8 | 4 | 12 | 0.656 |
classes | gen | 3 | 3 | 4 | 0.738 |
asdl_generated | gen | 4 | 0 | 4 | 0.900 |
varargs | gen | 45 | 54 | 50 | 0.905 |
parse | gen | 8 | 0 | 8 | 1.043 |
cgi | gen | 8 | 4 | 4 | 1.988 |
length | gen | 8 | 0 | 4 | 1.992 |