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 |
modules | gen | 0 | 0 | 189 | 0.000 |
fib_recursive | gen | 7 | 11 | 975 | 0.007 |
fib_iter | gen | 8 | 8 | 879 | 0.009 |
loops | gen | 4 | 0 | 298 | 0.013 |
asdl_generated | gen | 11 | 11 | 380 | 0.029 |
parse | gen | 26 | 27 | 786 | 0.034 |
scoped_resource | gen | 40 | 38 | 1,034 | 0.038 |
containers | gen | 8 | 0 | 122 | 0.063 |
tuple_return_value | gen | 19 | 18 | 189 | 0.102 |
files | gen | 7 | 4 | 70 | 0.103 |
classes | gen | 3 | 3 | 26 | 0.122 |
gc_stack_roots | gen | 2 | 0 | 12 | 0.150 |
length | gen | 41 | 46 | 210 | 0.196 |
varargs | gen | 4 | 8 | 20 | 0.205 |
cartesian | gen | 77 | 82 | 343 | 0.224 |
escape | gen | 104 | 99 | 359 | 0.290 |
cgi | gen | 269 | 263 | 522 | 0.514 |
control_flow | gen | 202 | 161 | 113 | 1.791 |
pea_hello | gen | NA | NA | 14 | 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.3 | 4.3 | 12.5 | 0.35 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.5 | 0.40 |
parse | gen | 3.7 | 3.8 | 9.0 | 0.41 |
cartesian | gen | 3.5 | 3.7 | 8.5 | 0.42 |
modules | gen | 3.7 | 3.8 | 8.7 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.5 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.8 | 8.4 | 0.44 |
files | gen | 3.8 | 3.7 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.4 | 28.6 | 48.9 | 0.58 |
varargs | gen | 5.4 | 5.5 | 8.4 | 0.64 |
pea_hello | gen | NA | NA | 8.0 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
cgi | gen | 0 | 4 | 4 | 0.000 |
classes | gen | 0 | 0 | 13 | 0.000 |
escape | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 16 | 0.000 |
files | gen | 0 | 4 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
loops | gen | 0 | 3 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 4 | 0 | 16 | 0.225 |
modules | gen | 2 | 2 | 8 | 0.228 |
containers | gen | 8 | 14 | 24 | 0.313 |
length | gen | 4 | 0 | 8 | 0.473 |
control_flow | gen | 4 | 0 | 8 | 0.492 |
parse | gen | 4 | 0 | 4 | 0.941 |
scoped_resource | gen | 8 | 8 | 8 | 0.992 |
varargs | gen | 62 | 57 | 60 | 1.028 |
cartesian | gen | 15 | 4 | 8 | 1.926 |
pea_hello | gen | NA | NA | 5 | NA |