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 | 34 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 3 | 300 | 0.000 |
fib_iter | gen | 8 | 8 | 892 | 0.008 |
modules | gen | 2 | 0 | 188 | 0.010 |
fib_recursive | gen | 11 | 7 | 884 | 0.012 |
asdl_generated | gen | 11 | 4 | 378 | 0.029 |
parse | gen | 27 | 27 | 773 | 0.035 |
scoped_resource | gen | 40 | 46 | 1,028 | 0.039 |
files | gen | 8 | 4 | 90 | 0.085 |
tuple_return_value | gen | 19 | 18 | 187 | 0.103 |
containers | gen | 11 | 10 | 110 | 0.104 |
length | gen | 44 | 37 | 206 | 0.216 |
cartesian | gen | 87 | 86 | 329 | 0.265 |
escape | gen | 95 | 94 | 352 | 0.270 |
cgi | gen | 270 | 268 | 524 | 0.515 |
varargs | gen | 25 | 20 | 44 | 0.559 |
control_flow | gen | 209 | 158 | 113 | 1.849 |
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.2 | 0.37 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.4 | 0.41 |
parse | gen | 3.7 | 3.8 | 9.0 | 0.41 |
tuple_return_value | gen | 3.5 | 3.8 | 8.5 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_iter | gen | 3.7 | 3.9 | 8.5 | 0.43 |
length | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.5 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.5 | 8.4 | 0.44 |
loops | gen | 3.8 | 3.9 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.5 | 0.45 |
cartesian | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_recursive | gen | 3.8 | 3.7 | 8.4 | 0.45 |
files | gen | 3.8 | 3.9 | 8.4 | 0.45 |
modules | gen | 3.8 | 3.7 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.6 | 28.5 | 49.2 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.5 | 0.65 |
pea_hello | gen | NA | NA | 8.3 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 8 | 12 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
length | gen | 0 | 8 | 12 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 12 | 0.000 |
containers | gen | 4 | 5 | 35 | 0.108 |
gc_stack_roots | gen | 2 | 2 | 11 | 0.163 |
parse | gen | 4 | 0 | 16 | 0.244 |
cartesian | gen | 4 | 0 | 16 | 0.250 |
loops | gen | 4 | 0 | 12 | 0.326 |
scoped_resource | gen | 7 | 0 | 12 | 0.612 |
classes | gen | 3 | 0 | 4 | 0.761 |
varargs | gen | 41 | 45 | 36 | 1.139 |
escape | gen | 12 | 8 | 8 | 1.485 |
pea_hello | gen | NA | NA | 14 | NA |