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 |
loops | gen | 0 | 3 | 291 | 0.000 |
fib_iter | gen | 4 | 4 | 897 | 0.004 |
modules | gen | 2 | 2 | 178 | 0.011 |
fib_recursive | gen | 11 | 11 | 875 | 0.012 |
asdl_generated | gen | 7 | 7 | 371 | 0.019 |
containers | gen | 4 | 4 | 124 | 0.031 |
parse | gen | 25 | 23 | 763 | 0.033 |
scoped_resource | gen | 47 | 37 | 1,123 | 0.042 |
tuple_return_value | gen | 16 | 15 | 192 | 0.085 |
files | gen | 8 | 8 | 68 | 0.112 |
length | gen | 45 | 40 | 205 | 0.220 |
cartesian | gen | 84 | 80 | 322 | 0.261 |
escape | gen | 97 | 96 | 349 | 0.278 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.451 |
cgi | gen | 250 | 268 | 511 | 0.490 |
varargs | gen | 8 | 25 | 16 | 0.514 |
control_flow | gen | 203 | 157 | 110 | 1.842 |
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.6 | 4.5 | 10.7 | 0.43 |
scoped_resource | gen | 3.5 | 3.8 | 7.1 | 0.50 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 7.1 | 0.52 |
escape | gen | 3.7 | 3.5 | 7.1 | 0.52 |
tuple_return_value | gen | 3.7 | 3.8 | 7.1 | 0.52 |
fib_iter | gen | 3.7 | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.8 | 3.8 | 7.1 | 0.54 |
files | gen | 3.8 | 3.7 | 7.1 | 0.54 |
length | gen | 3.8 | 3.5 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.5 | 7.1 | 0.54 |
cgi | gen | 3.7 | 3.7 | 6.8 | 0.54 |
fib_recursive | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.5 | 28.6 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.4 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
length | gen | 0 | 4 | 4 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 8 | 4 | 0.000 |
classes | gen | 3 | 0 | 12 | 0.274 |
asdl_generated | gen | 4 | 4 | 12 | 0.299 |
fib_iter | gen | 4 | 4 | 12 | 0.321 |
parse | gen | 4 | 4 | 12 | 0.344 |
cgi | gen | 4 | 0 | 8 | 0.498 |
loops | gen | 4 | 0 | 4 | 0.932 |
containers | gen | 12 | 11 | 12 | 0.971 |
control_flow | gen | 4 | 4 | 4 | 0.975 |
escape | gen | 8 | 8 | 8 | 0.979 |
cartesian | gen | 8 | 8 | 8 | 1.008 |
varargs | gen | 58 | 41 | 56 | 1.027 |
tuple_return_value | gen | 4 | 4 | 0 | inf |