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 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 174 | 0.000 |
fib_iter | gen | 8 | 4 | 893 | 0.009 |
fib_recursive | gen | 11 | 11 | 940 | 0.011 |
loops | gen | 4 | 3 | 289 | 0.014 |
asdl_generated | gen | 11 | 11 | 372 | 0.030 |
parse | gen | 29 | 27 | 758 | 0.039 |
scoped_resource | gen | 48 | 46 | 1,053 | 0.046 |
containers | gen | 12 | 10 | 119 | 0.098 |
tuple_return_value | gen | 21 | 37 | 198 | 0.104 |
files | gen | 7 | 7 | 68 | 0.110 |
classes | gen | 3 | 0 | 19 | 0.166 |
length | gen | 44 | 44 | 201 | 0.220 |
cartesian | gen | 80 | 84 | 318 | 0.252 |
varargs | gen | 8 | 29 | 31 | 0.267 |
escape | gen | 100 | 93 | 341 | 0.292 |
cgi | gen | 269 | 264 | 513 | 0.525 |
control_flow | gen | 208 | 160 | 114 | 1.825 |
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.3 | 4.5 | 10.9 | 0.40 |
cartesian | gen | 3.5 | 3.5 | 7.1 | 0.50 |
parse | gen | 3.8 | 3.8 | 7.5 | 0.51 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.5 | 7.1 | 0.52 |
tuple_return_value | gen | 3.7 | 3.8 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.8 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
modules | gen | 3.8 | 3.8 | 7.1 | 0.54 |
fib_iter | gen | 3.7 | 3.5 | 6.8 | 0.54 |
files | gen | 3.7 | 3.7 | 6.8 | 0.54 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.7 | 6.9 | 0.57 |
containers | gen | 28.5 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.5 | 6.7 | 0.80 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 12 | 0.000 |
cgi | gen | 0 | 4 | 4 | 0.000 |
classes | gen | 0 | 3 | 12 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 8 | 0.000 |
modules | gen | 2 | 2 | 8 | 0.225 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.243 |
containers | gen | 4 | 5 | 16 | 0.244 |
escape | gen | 4 | 12 | 8 | 0.517 |
cartesian | gen | 12 | 4 | 12 | 1.007 |
varargs | gen | 58 | 37 | 42 | 1.358 |
control_flow | gen | 0 | 4 | 0 | NA |