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 |
fib_iter | gen | 8 | 8 | 900 | 0.008 |
modules | gen | 2 | 2 | 177 | 0.010 |
fib_recursive | gen | 11 | 11 | 873 | 0.012 |
loops | gen | 4 | 0 | 291 | 0.013 |
asdl_generated | gen | 7 | 11 | 378 | 0.019 |
parse | gen | 25 | 27 | 769 | 0.032 |
scoped_resource | gen | 48 | 35 | 1,053 | 0.046 |
files | gen | 7 | 4 | 71 | 0.104 |
tuple_return_value | gen | 20 | 19 | 188 | 0.107 |
containers | gen | 12 | 0 | 103 | 0.115 |
classes | gen | 3 | 0 | 23 | 0.137 |
length | gen | 40 | 40 | 196 | 0.205 |
cartesian | gen | 81 | 86 | 330 | 0.246 |
escape | gen | 107 | 102 | 349 | 0.305 |
cgi | gen | 247 | 249 | 519 | 0.476 |
varargs | gen | 8 | 12 | 8 | 0.997 |
control_flow | gen | 209 | 159 | 107 | 1.952 |
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.8 | 0.41 |
parse | gen | 3.7 | 3.8 | 7.5 | 0.49 |
scoped_resource | gen | 3.5 | 3.7 | 7.1 | 0.50 |
cgi | gen | 3.5 | 3.7 | 6.9 | 0.51 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.7 | 6.9 | 0.51 |
loops | gen | 3.7 | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.8 | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 3.7 | 7.1 | 0.54 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 3.5 | 6.9 | 0.55 |
length | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.9 | 6.9 | 0.57 |
containers | gen | 28.6 | 28.4 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 3 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
escape | gen | 0 | 8 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
loops | gen | 0 | 3 | 4 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 12 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
containers | gen | 4 | 14 | 32 | 0.124 |
length | gen | 4 | 12 | 12 | 0.334 |
asdl_generated | gen | 4 | 0 | 4 | 0.901 |
varargs | gen | 57 | 54 | 62 | 0.930 |
cgi | gen | 8 | 4 | 4 | 1.979 |
cartesian | gen | 8 | 0 | 4 | 2.014 |
gc_stack_roots | gen | 2 | 2 | 0 | inf |
parse | gen | 4 | 0 | 0 | inf |
fib_iter | gen | 0 | 0 | 0 | NA |