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 | 0 | 19 | 0.000 |
fib_recursive | gen | 7 | 11 | 882 | 0.008 |
fib_iter | gen | 8 | 8 | 897 | 0.008 |
modules | gen | 2 | 0 | 178 | 0.010 |
loops | gen | 4 | 3 | 289 | 0.013 |
asdl_generated | gen | 7 | 6 | 374 | 0.019 |
parse | gen | 26 | 27 | 771 | 0.034 |
scoped_resource | gen | 48 | 45 | 1,055 | 0.045 |
tuple_return_value | gen | 16 | 18 | 187 | 0.088 |
containers | gen | 11 | 4 | 125 | 0.091 |
files | gen | 7 | 4 | 71 | 0.105 |
length | gen | 45 | 44 | 203 | 0.219 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.228 |
cartesian | gen | 88 | 78 | 328 | 0.269 |
escape | gen | 101 | 97 | 346 | 0.293 |
cgi | gen | 251 | 265 | 510 | 0.491 |
varargs | gen | 21 | 12 | 20 | 1.049 |
control_flow | gen | 209 | 161 | 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.5 | 10.6 | 0.42 |
gc_stack_roots | gen | 3.4 | 3.4 | 6.9 | 0.49 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
cartesian | gen | 3.7 | 3.4 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
fib_iter | gen | 3.7 | 3.5 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.8 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.7 | 3.8 | 6.8 | 0.54 |
asdl_generated | gen | 3.8 | 3.7 | 6.9 | 0.55 |
cgi | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.9 | 6.9 | 0.55 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.8 | 3.7 | 6.8 | 0.56 |
containers | gen | 28.6 | 28.5 | 47.5 | 0.60 |
varargs | gen | 5.5 | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
control_flow | gen | 0 | 4 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 3 | 3 | 11 | 0.281 |
containers | gen | 4 | 11 | 12 | 0.313 |
asdl_generated | gen | 4 | 6 | 8 | 0.445 |
parse | gen | 4 | 0 | 8 | 0.467 |
escape | gen | 4 | 8 | 8 | 0.490 |
cgi | gen | 4 | 4 | 8 | 0.495 |
cartesian | gen | 4 | 8 | 8 | 0.502 |
tuple_return_value | gen | 4 | 0 | 8 | 0.516 |
varargs | gen | 46 | 55 | 52 | 0.888 |
fib_recursive | gen | 4 | 0 | 4 | 0.904 |