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 |
containers | gen | 0 | 7 | 117 | 0.000 |
fib_iter | gen | 4 | 8 | 900 | 0.004 |
modules | gen | 2 | 2 | 188 | 0.009 |
loops | gen | 4 | 3 | 300 | 0.012 |
fib_recursive | gen | 11 | 11 | 898 | 0.012 |
parse | gen | 17 | 22 | 794 | 0.022 |
asdl_generated | gen | 11 | 4 | 391 | 0.027 |
scoped_resource | gen | 48 | 41 | 1,036 | 0.046 |
tuple_return_value | gen | 14 | 15 | 191 | 0.075 |
files | gen | 7 | 7 | 79 | 0.092 |
gc_stack_roots | gen | 2 | 2 | 11 | 0.157 |
classes | gen | 3 | 3 | 19 | 0.170 |
length | gen | 46 | 37 | 209 | 0.218 |
cartesian | gen | 87 | 79 | 331 | 0.262 |
escape | gen | 100 | 102 | 353 | 0.282 |
cgi | gen | 268 | 260 | 522 | 0.513 |
varargs | gen | 16 | 12 | 28 | 0.588 |
control_flow | gen | 204 | 161 | 116 | 1.754 |
pea_hello | gen | NA | NA | 5 | 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 |
parse | gen | 3.7 | 3.8 | 9.0 | 0.41 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.5 | 8.5 | 0.43 |
tuple_return_value | gen | 3.7 | 3.8 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
loops | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cartesian | gen | 3.7 | 3.7 | 8.3 | 0.44 |
fib_recursive | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.7 | 8.5 | 0.45 |
length | gen | 3.8 | 3.5 | 8.5 | 0.45 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.7 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.2 | 0.58 |
varargs | gen | 5.5 | 5.6 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 8 | 4 | 0.000 |
classes | gen | 0 | 0 | 19 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 8 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
cartesian | gen | 4 | 8 | 12 | 0.346 |
escape | gen | 4 | 0 | 8 | 0.497 |
containers | gen | 16 | 7 | 28 | 0.565 |
tuple_return_value | gen | 5 | 4 | 8 | 0.602 |
fib_iter | gen | 4 | 0 | 4 | 0.940 |
varargs | gen | 49 | 53 | 52 | 0.949 |
control_flow | gen | 4 | 0 | 4 | 0.997 |
parse | gen | 13 | 4 | 0 | inf |
asdl_generated | gen | 0 | 7 | 0 | NA |
pea_hello | gen | NA | NA | 14 | NA |