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 | 23 | 0.000 |
fib_recursive | gen | 7 | 11 | 876 | 0.008 |
fib_iter | gen | 8 | 4 | 898 | 0.008 |
modules | gen | 2 | 2 | 175 | 0.010 |
loops | gen | 4 | 3 | 291 | 0.013 |
asdl_generated | gen | 7 | 7 | 394 | 0.018 |
parse | gen | 30 | 24 | 802 | 0.037 |
scoped_resource | gen | 44 | 43 | 1,046 | 0.042 |
containers | gen | 12 | 14 | 123 | 0.094 |
tuple_return_value | gen | 20 | 18 | 194 | 0.105 |
files | gen | 7 | 0 | 63 | 0.117 |
length | gen | 36 | 45 | 200 | 0.181 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.227 |
cartesian | gen | 76 | 79 | 326 | 0.232 |
escape | gen | 97 | 100 | 344 | 0.281 |
cgi | gen | 252 | 263 | 508 | 0.495 |
varargs | gen | 23 | 20 | 16 | 1.453 |
control_flow | gen | 212 | 162 | 111 | 1.906 |
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.2 | 4.5 | 10.8 | 0.39 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
scoped_resource | gen | 3.7 | 3.8 | 7.2 | 0.51 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
cartesian | gen | 3.5 | 3.5 | 6.9 | 0.51 |
cgi | gen | 3.5 | 3.7 | 6.9 | 0.51 |
fib_iter | gen | 3.7 | 3.5 | 7.1 | 0.52 |
gc_stack_roots | gen | 3.7 | 3.4 | 7.1 | 0.52 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
escape | gen | 3.7 | 3.5 | 6.9 | 0.53 |
length | gen | 3.7 | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.8 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.8 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.7 | 7.1 | 0.54 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.7 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.5 | 6.9 | 0.77 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
control_flow | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 7 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 4 | 16 | 0.000 |
containers | gen | 4 | 0 | 12 | 0.322 |
classes | gen | 3 | 3 | 8 | 0.426 |
fib_recursive | gen | 4 | 0 | 8 | 0.447 |
cgi | gen | 4 | 8 | 8 | 0.499 |
scoped_resource | gen | 4 | 4 | 8 | 0.500 |
varargs | gen | 43 | 45 | 56 | 0.761 |
length | gen | 8 | 0 | 8 | 1.005 |
escape | gen | 8 | 4 | 8 | 1.006 |
cartesian | gen | 16 | 8 | 8 | 2.006 |
asdl_generated | gen | 4 | 4 | 0 | inf |
tuple_return_value | gen | 0 | 0 | 0 | NA |