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 | 3 | 20 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
fib_recursive | gen | 7 | 7 | 906 | 0.008 |
fib_iter | gen | 8 | 8 | 891 | 0.009 |
asdl_generated | gen | 4 | 11 | 381 | 0.010 |
modules | gen | 2 | 2 | 175 | 0.010 |
loops | gen | 4 | 3 | 305 | 0.013 |
parse | gen | 22 | 19 | 776 | 0.028 |
scoped_resource | gen | 39 | 42 | 1,035 | 0.038 |
containers | gen | 8 | 11 | 118 | 0.066 |
tuple_return_value | gen | 21 | 18 | 185 | 0.112 |
files | gen | 8 | 4 | 66 | 0.117 |
length | gen | 41 | 46 | 205 | 0.199 |
cartesian | gen | 91 | 79 | 339 | 0.269 |
escape | gen | 101 | 97 | 348 | 0.289 |
cgi | gen | 269 | 264 | 516 | 0.521 |
varargs | gen | 21 | 28 | 16 | 1.278 |
control_flow | gen | 210 | 158 | 114 | 1.835 |
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 |
cgi | gen | 3.5 | 3.7 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.4 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
parse | gen | 3.9 | 3.8 | 7.5 | 0.53 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.5 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
length | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 3.7 | 7.1 | 0.54 |
fib_iter | 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 |
control_flow | gen | 3.9 | 3.9 | 7.1 | 0.56 |
fib_recursive | gen | 3.9 | 3.7 | 6.9 | 0.57 |
containers | gen | 28.4 | 28.6 | 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 |
cgi | gen | 0 | 4 | 4 | 0.000 |
control_flow | gen | 0 | 4 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 12 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 3 | 0 | 12 | 0.282 |
containers | gen | 8 | 4 | 20 | 0.395 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.434 |
fib_recursive | gen | 4 | 4 | 8 | 0.455 |
scoped_resource | gen | 8 | 4 | 16 | 0.493 |
varargs | gen | 46 | 39 | 57 | 0.804 |
parse | gen | 7 | 8 | 8 | 0.914 |
length | gen | 4 | 0 | 4 | 0.922 |
escape | gen | 4 | 8 | 4 | 1.006 |
asdl_generated | gen | 7 | 0 | 4 | 1.857 |
cartesian | gen | 8 | 8 | 0 | inf |
loops | gen | 0 | 0 | 0 | NA |