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 | 0 | 12 | 0.000 |
fib_iter | gen | 8 | 7 | 911 | 0.008 |
fib_recursive | gen | 7 | 11 | 888 | 0.008 |
modules | gen | 2 | 0 | 188 | 0.010 |
loops | gen | 4 | 0 | 293 | 0.013 |
asdl_generated | gen | 11 | 11 | 392 | 0.028 |
parse | gen | 23 | 23 | 778 | 0.030 |
scoped_resource | gen | 44 | 45 | 1,012 | 0.044 |
containers | gen | 8 | 4 | 106 | 0.074 |
files | gen | 8 | 7 | 77 | 0.101 |
tuple_return_value | gen | 19 | 15 | 187 | 0.103 |
classes | gen | 3 | 0 | 31 | 0.105 |
length | gen | 41 | 46 | 209 | 0.196 |
cartesian | gen | 85 | 78 | 339 | 0.251 |
varargs | gen | 8 | 27 | 32 | 0.255 |
escape | gen | 102 | 99 | 372 | 0.273 |
cgi | gen | 268 | 259 | 514 | 0.522 |
control_flow | gen | 206 | 160 | 120 | 1.715 |
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.3 | 4.3 | 12.3 | 0.35 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.4 | 0.41 |
parse | gen | 3.8 | 3.7 | 9.1 | 0.42 |
cartesian | gen | 3.5 | 3.8 | 8.4 | 0.42 |
escape | gen | 3.5 | 3.7 | 8.3 | 0.43 |
asdl_generated | gen | 3.7 | 3.5 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.8 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.8 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.5 | 8.4 | 0.44 |
control_flow | gen | 3.7 | 3.8 | 8.4 | 0.44 |
fib_iter | gen | 3.7 | 3.7 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 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 |
length | 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.4 | 0.67 |
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 | 8 | 0.000 |
classes | gen | 0 | 3 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 3 | 16 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 16 | 0.000 |
containers | gen | 8 | 11 | 43 | 0.181 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.224 |
scoped_resource | gen | 4 | 0 | 16 | 0.252 |
escape | gen | 4 | 4 | 12 | 0.326 |
fib_recursive | gen | 4 | 0 | 8 | 0.466 |
parse | gen | 8 | 4 | 16 | 0.478 |
control_flow | gen | 4 | 4 | 8 | 0.504 |
length | gen | 4 | 0 | 8 | 0.509 |
cartesian | gen | 8 | 8 | 8 | 1.017 |
varargs | gen | 57 | 38 | 48 | 1.189 |
asdl_generated | gen | 0 | 0 | 0 | NA |
pea_hello | gen | NA | NA | 4 | NA |