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 | 4 | 0.000 |
fib_iter | gen | 8 | 4 | 936 | 0.008 |
asdl_generated | gen | 4 | 11 | 393 | 0.009 |
modules | gen | 2 | 2 | 192 | 0.009 |
fib_recursive | gen | 11 | 7 | 885 | 0.012 |
loops | gen | 4 | 3 | 295 | 0.012 |
parse | gen | 27 | 19 | 783 | 0.035 |
files | gen | 4 | 7 | 80 | 0.045 |
scoped_resource | gen | 47 | 41 | 1,035 | 0.046 |
containers | gen | 8 | 14 | 124 | 0.062 |
tuple_return_value | gen | 19 | 15 | 191 | 0.100 |
length | gen | 28 | 42 | 218 | 0.129 |
classes | gen | 3 | 0 | 23 | 0.138 |
cartesian | gen | 91 | 78 | 333 | 0.272 |
escape | gen | 102 | 98 | 352 | 0.289 |
cgi | gen | 264 | 249 | 527 | 0.502 |
varargs | gen | 19 | 23 | 24 | 0.813 |
control_flow | gen | 203 | 155 | 115 | 1.775 |
pea_hello | gen | NA | NA | 15 | NA |
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 | 12.5 | 0.36 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.4 | 0.41 |
cgi | gen | 3.5 | 3.7 | 8.5 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.5 | 8.5 | 0.43 |
length | gen | 3.7 | 3.5 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.8 | 8.4 | 0.44 |
fib_iter | gen | 3.7 | 3.5 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.5 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.9 | 9.0 | 0.44 |
control_flow | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.6 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.3 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cartesian | gen | 0 | 8 | 8 | 0.000 |
classes | gen | 0 | 3 | 15 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
tuple_return_value | gen | 0 | 4 | 12 | 0.000 |
gc_stack_roots | gen | 2 | 0 | 15 | 0.116 |
cgi | gen | 4 | 4 | 12 | 0.334 |
escape | gen | 4 | 4 | 12 | 0.339 |
containers | gen | 8 | 0 | 20 | 0.382 |
files | gen | 4 | 0 | 8 | 0.453 |
parse | gen | 4 | 8 | 8 | 0.484 |
control_flow | gen | 4 | 4 | 8 | 0.505 |
varargs | gen | 46 | 42 | 56 | 0.836 |
asdl_generated | gen | 7 | 0 | 8 | 0.890 |
length | gen | 16 | 4 | 0 | inf |
pea_hello | gen | NA | NA | 4 | NA |