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 |
loops | gen | 0 | 3 | 300 | 0.000 |
fib_iter | gen | 8 | 8 | 891 | 0.009 |
modules | gen | 2 | 2 | 188 | 0.009 |
fib_recursive | gen | 11 | 11 | 887 | 0.012 |
parse | gen | 19 | 27 | 780 | 0.024 |
asdl_generated | gen | 11 | 11 | 387 | 0.028 |
scoped_resource | gen | 48 | 42 | 1,040 | 0.046 |
containers | gen | 8 | 9 | 124 | 0.064 |
files | gen | 7 | 4 | 79 | 0.092 |
classes | gen | 3 | 4 | 35 | 0.094 |
tuple_return_value | gen | 19 | 11 | 200 | 0.095 |
length | gen | 33 | 45 | 212 | 0.157 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.227 |
escape | gen | 93 | 101 | 372 | 0.250 |
cartesian | gen | 89 | 86 | 342 | 0.259 |
varargs | gen | 12 | 29 | 24 | 0.481 |
cgi | gen | 261 | 252 | 527 | 0.495 |
control_flow | gen | 212 | 158 | 113 | 1.869 |
pea_hello | gen | NA | NA | 15 | NA |
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.3 | 4.5 | 12.3 | 0.35 |
asdl_generated | gen | 3.5 | 3.7 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
cartesian | gen | 3.7 | 3.5 | 8.5 | 0.43 |
files | gen | 3.7 | 3.9 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.7 | 8.5 | 0.43 |
parse | gen | 3.9 | 3.9 | 9.1 | 0.43 |
cgi | gen | 3.7 | 3.4 | 8.4 | 0.44 |
fib_recursive | gen | 3.8 | 3.9 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.5 | 0.45 |
escape | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.7 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.9 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.5 | 0.65 |
pea_hello | gen | NA | NA | 8.3 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 0 | 4 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
containers | gen | 8 | 5 | 20 | 0.396 |
loops | gen | 4 | 0 | 4 | 0.921 |
parse | gen | 11 | 0 | 12 | 0.952 |
varargs | gen | 54 | 37 | 56 | 0.962 |
cartesian | gen | 4 | 0 | 4 | 1.000 |
escape | gen | 12 | 4 | 8 | 1.455 |
cgi | gen | 8 | 0 | 4 | 2.011 |
length | gen | 11 | 0 | 4 | 2.768 |
pea_hello | gen | NA | NA | 4 | NA |
tuple_return_value | gen | 0 | 7 | 0 | NA |