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 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
modules | gen | 0 | 2 | 183 | 0.000 |
fib_iter | gen | 8 | 4 | 889 | 0.009 |
fib_recursive | gen | 11 | 11 | 901 | 0.012 |
loops | gen | 4 | 3 | 293 | 0.013 |
asdl_generated | gen | 5 | 11 | 381 | 0.014 |
parse | gen | 22 | 27 | 763 | 0.029 |
scoped_resource | gen | 44 | 38 | 1,044 | 0.043 |
files | gen | 8 | 7 | 72 | 0.107 |
containers | gen | 12 | 9 | 109 | 0.108 |
tuple_return_value | gen | 21 | 14 | 177 | 0.117 |
classes | gen | 3 | 0 | 24 | 0.134 |
length | gen | 45 | 37 | 205 | 0.220 |
cartesian | gen | 86 | 73 | 320 | 0.270 |
escape | gen | 99 | 110 | 341 | 0.289 |
cgi | gen | 269 | 269 | 505 | 0.534 |
varargs | gen | 8 | 20 | 8 | 1.039 |
control_flow | gen | 205 | 162 | 106 | 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.3 | 10.7 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 7.1 | 0.48 |
parse | gen | 3.7 | 3.8 | 7.6 | 0.48 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
files | gen | 3.7 | 3.8 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.8 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
scoped_resource | gen | 3.7 | 3.8 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
cartesian | gen | 3.7 | 3.5 | 6.8 | 0.54 |
fib_recursive | gen | 3.7 | 3.8 | 6.8 | 0.54 |
fib_iter | gen | 3.8 | 3.7 | 6.9 | 0.55 |
length | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.9 | 3.7 | 6.9 | 0.57 |
control_flow | gen | 3.9 | 3.9 | 6.8 | 0.58 |
containers | gen | 28.5 | 28.4 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.5 | 7.1 | 0.76 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 3 | 8 | 0.000 |
fib_iter | gen | 0 | 4 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 7 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
tuple_return_value | gen | 0 | 5 | 16 | 0.000 |
containers | gen | 4 | 5 | 32 | 0.122 |
modules | gen | 2 | 0 | 8 | 0.222 |
parse | gen | 7 | 0 | 16 | 0.455 |
cartesian | gen | 4 | 12 | 8 | 0.491 |
control_flow | gen | 4 | 0 | 8 | 0.513 |
escape | gen | 8 | 0 | 12 | 0.655 |
varargs | gen | 58 | 45 | 64 | 0.910 |
scoped_resource | gen | 4 | 8 | 4 | 1.009 |
asdl_generated | gen | 5 | 0 | 4 | 1.371 |
gc_stack_roots | gen | 2 | 2 | 0 | inf |