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 | 2 | 8 | 0.000 |
modules | gen | 0 | 2 | 186 | 0.000 |
fib_recursive | gen | 7 | 7 | 879 | 0.008 |
fib_iter | gen | 8 | 8 | 888 | 0.009 |
loops | gen | 4 | 3 | 282 | 0.013 |
asdl_generated | gen | 11 | 11 | 384 | 0.028 |
parse | gen | 25 | 27 | 796 | 0.031 |
scoped_resource | gen | 40 | 38 | 1,044 | 0.038 |
containers | gen | 8 | 7 | 105 | 0.076 |
files | gen | 7 | 8 | 73 | 0.101 |
tuple_return_value | gen | 21 | 19 | 185 | 0.111 |
classes | gen | 4 | 0 | 19 | 0.185 |
length | gen | 42 | 40 | 208 | 0.201 |
cartesian | gen | 93 | 83 | 353 | 0.263 |
escape | gen | 101 | 99 | 344 | 0.294 |
cgi | gen | 269 | 268 | 514 | 0.523 |
varargs | gen | 16 | 8 | 27 | 0.583 |
control_flow | gen | 207 | 158 | 110 | 1.889 |
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 |
gc_stack_roots | gen | 3.4 | 3.5 | 7.1 | 0.48 |
parse | gen | 3.8 | 3.7 | 7.6 | 0.50 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.5 | 3.7 | 6.8 | 0.52 |
fib_iter | gen | 3.5 | 3.5 | 6.8 | 0.52 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.8 | 6.9 | 0.53 |
files | gen | 3.7 | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 3.8 | 6.9 | 0.53 |
control_flow | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
modules | gen | 3.7 | 3.9 | 6.8 | 0.54 |
tuple_return_value | gen | 3.8 | 3.7 | 6.9 | 0.55 |
fib_recursive | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.5 | 28.5 | 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 |
cartesian | gen | 0 | 4 | 8 | 0.000 |
cgi | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 3 | 12 | 0.000 |
control_flow | gen | 0 | 4 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 8 | 7 | 32 | 0.248 |
fib_recursive | gen | 4 | 4 | 8 | 0.452 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.458 |
modules | gen | 2 | 0 | 4 | 0.461 |
escape | gen | 4 | 4 | 8 | 0.505 |
parse | gen | 4 | 0 | 8 | 0.521 |
scoped_resource | gen | 8 | 8 | 12 | 0.668 |
length | gen | 4 | 4 | 4 | 0.950 |
varargs | gen | 51 | 59 | 46 | 1.105 |
asdl_generated | gen | 0 | 0 | 0 | NA |