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 | 31 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 5 | 0.000 |
modules | gen | 0 | 2 | 203 | 0.000 |
fib_iter | gen | 8 | 8 | 938 | 0.008 |
fib_recursive | gen | 11 | 7 | 885 | 0.012 |
loops | gen | 4 | 3 | 294 | 0.015 |
asdl_generated | gen | 7 | 8 | 372 | 0.019 |
parse | gen | 27 | 24 | 782 | 0.034 |
scoped_resource | gen | 35 | 42 | 1,022 | 0.035 |
containers | gen | 12 | 9 | 132 | 0.089 |
files | gen | 7 | 8 | 80 | 0.091 |
tuple_return_value | gen | 19 | 18 | 197 | 0.096 |
length | gen | 44 | 46 | 212 | 0.210 |
cartesian | gen | 87 | 84 | 328 | 0.267 |
escape | gen | 105 | 99 | 351 | 0.299 |
cgi | gen | 245 | 259 | 531 | 0.461 |
varargs | gen | 12 | 20 | 12 | 1.033 |
control_flow | gen | 201 | 161 | 114 | 1.763 |
pea_hello | gen | NA | NA | 7 | 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.3 | 0.36 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.5 | 0.42 |
scoped_resource | gen | 3.5 | 3.8 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.5 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_iter | gen | 3.7 | 3.8 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.7 | 8.4 | 0.44 |
length | gen | 3.7 | 3.7 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.8 | 9.0 | 0.44 |
cartesian | gen | 3.7 | 3.5 | 8.3 | 0.44 |
modules | gen | 3.8 | 3.5 | 8.5 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.7 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.6 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.0 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
escape | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 12 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 2 | 2 | 14 | 0.118 |
containers | gen | 4 | 5 | 20 | 0.195 |
asdl_generated | gen | 4 | 4 | 16 | 0.226 |
parse | gen | 4 | 4 | 12 | 0.318 |
cartesian | gen | 4 | 0 | 12 | 0.332 |
classes | gen | 3 | 0 | 8 | 0.410 |
varargs | gen | 53 | 45 | 68 | 0.790 |
scoped_resource | gen | 12 | 4 | 12 | 0.980 |
control_flow | gen | 8 | 0 | 8 | 1.002 |
cgi | gen | 8 | 8 | 4 | 2.012 |
modules | gen | 2 | 0 | 0 | inf |
pea_hello | gen | NA | NA | 11 | NA |