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 | 16 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
fib_iter | gen | 8 | 8 | 897 | 0.009 |
modules | gen | 2 | 2 | 175 | 0.011 |
fib_recursive | gen | 11 | 7 | 898 | 0.012 |
loops | gen | 4 | 3 | 291 | 0.013 |
asdl_generated | gen | 11 | 11 | 368 | 0.030 |
parse | gen | 25 | 27 | 761 | 0.033 |
scoped_resource | gen | 40 | 38 | 1,013 | 0.039 |
files | gen | 4 | 7 | 72 | 0.052 |
tuple_return_value | gen | 14 | 18 | 185 | 0.074 |
containers | gen | 16 | 10 | 129 | 0.121 |
length | gen | 45 | 36 | 206 | 0.221 |
cartesian | gen | 84 | 85 | 340 | 0.248 |
escape | gen | 105 | 92 | 341 | 0.307 |
cgi | gen | 265 | 240 | 507 | 0.522 |
varargs | gen | 19 | 16 | 24 | 0.810 |
control_flow | gen | 210 | 158 | 108 | 1.939 |
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 | 10.7 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 6.9 | 0.49 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
cartesian | gen | 3.5 | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 3.9 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.8 | 6.9 | 0.53 |
escape | gen | 3.8 | 3.7 | 7.1 | 0.54 |
fib_iter | gen | 3.8 | 3.5 | 7.1 | 0.54 |
files | gen | 3.8 | 3.9 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.5 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.4 | 7.1 | 0.78 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 0 | 5 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 4 | 0.000 |
escape | gen | 0 | 12 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
length | gen | 0 | 8 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 3 | 0 | 16 | 0.209 |
scoped_resource | gen | 8 | 8 | 16 | 0.501 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.510 |
parse | gen | 4 | 0 | 8 | 0.519 |
tuple_return_value | gen | 7 | 0 | 8 | 0.851 |
files | gen | 4 | 0 | 4 | 0.938 |
varargs | gen | 47 | 49 | 48 | 0.972 |
cgi | gen | 4 | 12 | 4 | 0.989 |
cartesian | gen | 8 | 4 | 8 | 1.003 |