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 | 12 | 0.000 |
fib_iter | gen | 4 | 8 | 888 | 0.004 |
fib_recursive | gen | 7 | 11 | 890 | 0.008 |
modules | gen | 2 | 2 | 184 | 0.009 |
loops | gen | 4 | 3 | 308 | 0.012 |
asdl_generated | gen | 11 | 11 | 381 | 0.028 |
scoped_resource | gen | 40 | 33 | 1,084 | 0.037 |
parse | gen | 30 | 22 | 771 | 0.039 |
containers | gen | 10 | 0 | 113 | 0.085 |
files | gen | 7 | 4 | 78 | 0.093 |
tuple_return_value | gen | 19 | 18 | 187 | 0.103 |
classes | gen | 3 | 3 | 27 | 0.119 |
length | gen | 42 | 41 | 211 | 0.197 |
escape | gen | 93 | 103 | 354 | 0.263 |
cartesian | gen | 91 | 75 | 345 | 0.265 |
cgi | gen | 265 | 260 | 519 | 0.511 |
varargs | gen | 25 | 8 | 32 | 0.772 |
control_flow | gen | 203 | 161 | 104 | 1.944 |
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.3 | 12.3 | 0.36 |
parse | gen | 3.7 | 3.9 | 9.1 | 0.40 |
modules | gen | 3.5 | 3.7 | 8.7 | 0.41 |
escape | gen | 3.5 | 3.5 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
asdl_generated | gen | 3.7 | 3.5 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
control_flow | gen | 3.7 | 3.8 | 8.4 | 0.44 |
fib_iter | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
length | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_recursive | gen | 3.8 | 3.7 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.4 | 0.45 |
tuple_return_value | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.6 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.5 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
cartesian | gen | 0 | 12 | 8 | 0.000 |
classes | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 4 | 16 | 0.000 |
tuple_return_value | gen | 0 | 0 | 12 | 0.000 |
containers | gen | 6 | 14 | 31 | 0.205 |
control_flow | gen | 4 | 0 | 16 | 0.253 |
gc_stack_roots | gen | 2 | 0 | 8 | 0.254 |
fib_iter | gen | 4 | 0 | 12 | 0.314 |
cgi | gen | 4 | 8 | 12 | 0.336 |
fib_recursive | gen | 4 | 0 | 8 | 0.448 |
length | gen | 4 | 4 | 8 | 0.465 |
scoped_resource | gen | 8 | 12 | 12 | 0.668 |
varargs | gen | 41 | 57 | 48 | 0.857 |
escape | gen | 12 | 4 | 8 | 1.448 |
loops | gen | 0 | 0 | 0 | NA |
pea_hello | gen | NA | NA | 14 | NA |