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 | 2 | 12 | 0.000 |
fib_recursive | gen | 7 | 7 | 896 | 0.008 |
fib_iter | gen | 8 | 4 | 892 | 0.009 |
modules | gen | 2 | 0 | 183 | 0.010 |
loops | gen | 4 | 0 | 289 | 0.013 |
asdl_generated | gen | 11 | 7 | 374 | 0.030 |
parse | gen | 25 | 19 | 780 | 0.032 |
scoped_resource | gen | 48 | 45 | 1,043 | 0.046 |
files | gen | 4 | 8 | 70 | 0.053 |
tuple_return_value | gen | 17 | 18 | 200 | 0.083 |
containers | gen | 12 | 4 | 114 | 0.103 |
length | gen | 36 | 44 | 209 | 0.174 |
classes | gen | 4 | 0 | 16 | 0.236 |
cartesian | gen | 94 | 80 | 360 | 0.261 |
escape | gen | 101 | 100 | 351 | 0.287 |
cgi | gen | 269 | 249 | 510 | 0.528 |
varargs | gen | 21 | 35 | 32 | 0.640 |
control_flow | gen | 204 | 157 | 107 | 1.904 |
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.8 | 0.41 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
cgi | gen | 3.7 | 3.5 | 7.1 | 0.52 |
cartesian | gen | 3.5 | 3.5 | 6.8 | 0.52 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.7 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.8 | 6.9 | 0.53 |
length | gen | 3.8 | 3.7 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 3.7 | 6.9 | 0.55 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
scoped_resource | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.9 | 3.8 | 6.7 | 0.59 |
containers | gen | 28.7 | 28.4 | 47.4 | 0.60 |
varargs | gen | 5.6 | 5.4 | 7.1 | 0.80 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 8 | 0.000 |
cartesian | gen | 0 | 8 | 8 | 0.000 |
cgi | gen | 0 | 4 | 8 | 0.000 |
classes | gen | 0 | 3 | 16 | 0.000 |
fib_iter | gen | 0 | 4 | 12 | 0.000 |
loops | gen | 0 | 3 | 8 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 4 | 11 | 24 | 0.166 |
fib_recursive | gen | 4 | 4 | 8 | 0.450 |
files | gen | 4 | 0 | 8 | 0.477 |
control_flow | gen | 4 | 4 | 8 | 0.504 |
tuple_return_value | gen | 4 | 0 | 8 | 0.518 |
escape | gen | 4 | 4 | 4 | 0.972 |
parse | gen | 4 | 8 | 4 | 1.037 |
varargs | gen | 45 | 31 | 40 | 1.126 |
length | gen | 8 | 0 | 4 | 2.014 |
gc_stack_roots | gen | 2 | 0 | 0 | inf |