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 |
fib_iter | gen | 4 | 8 | 882 | 0.004 |
modules | gen | 2 | 2 | 171 | 0.010 |
fib_recursive | gen | 11 | 11 | 873 | 0.012 |
loops | gen | 4 | 3 | 290 | 0.013 |
parse | gen | 21 | 23 | 784 | 0.026 |
asdl_generated | gen | 11 | 7 | 378 | 0.028 |
scoped_resource | gen | 39 | 37 | 1,039 | 0.038 |
containers | gen | 8 | 0 | 111 | 0.069 |
files | gen | 8 | 7 | 73 | 0.106 |
tuple_return_value | gen | 20 | 18 | 189 | 0.108 |
length | gen | 40 | 41 | 212 | 0.190 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.231 |
cartesian | gen | 80 | 74 | 341 | 0.236 |
escape | gen | 104 | 96 | 345 | 0.302 |
cgi | gen | 265 | 264 | 509 | 0.521 |
varargs | gen | 19 | 21 | 11 | 1.698 |
control_flow | gen | 207 | 163 | 107 | 1.943 |
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.6 | 0.42 |
parse | gen | 3.7 | 3.8 | 7.6 | 0.48 |
gc_stack_roots | gen | 3.4 | 3.4 | 6.9 | 0.49 |
asdl_generated | gen | 3.5 | 3.5 | 6.9 | 0.51 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 3.5 | 6.9 | 0.53 |
loops | gen | 3.7 | 3.8 | 6.9 | 0.53 |
modules | gen | 3.8 | 3.7 | 7.1 | 0.54 |
cgi | gen | 3.7 | 3.5 | 6.8 | 0.54 |
fib_iter | gen | 3.7 | 3.8 | 6.8 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.5 | 7.1 | 0.56 |
files | gen | 3.8 | 3.7 | 6.8 | 0.56 |
tuple_return_value | gen | 3.9 | 3.8 | 6.8 | 0.58 |
containers | gen | 28.5 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.6 | 7.1 | 0.76 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 8 | 0.000 |
escape | gen | 0 | 12 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 3 | 0 | 16 | 0.200 |
containers | gen | 8 | 15 | 28 | 0.276 |
fib_iter | gen | 4 | 0 | 8 | 0.470 |
control_flow | gen | 4 | 0 | 8 | 0.504 |
cgi | gen | 4 | 4 | 8 | 0.506 |
varargs | gen | 47 | 45 | 61 | 0.764 |
scoped_resource | gen | 8 | 8 | 8 | 0.987 |
parse | gen | 8 | 4 | 4 | 2.065 |
cartesian | gen | 12 | 12 | 4 | 3.004 |
length | gen | 4 | 4 | 0 | inf |