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 |
fib_iter | gen | 4 | 4 | 886 | 0.004 |
modules | gen | 2 | 2 | 187 | 0.010 |
fib_recursive | gen | 11 | 7 | 902 | 0.012 |
loops | gen | 4 | 3 | 299 | 0.012 |
asdl_generated | gen | 11 | 11 | 404 | 0.028 |
parse | gen | 23 | 23 | 776 | 0.029 |
scoped_resource | gen | 44 | 47 | 1,032 | 0.043 |
containers | gen | 7 | 4 | 125 | 0.052 |
files | gen | 7 | 7 | 80 | 0.093 |
gc_stack_roots | gen | 2 | 2 | 16 | 0.110 |
tuple_return_value | gen | 23 | 18 | 191 | 0.119 |
classes | gen | 3 | 3 | 25 | 0.127 |
length | gen | 45 | 46 | 215 | 0.209 |
escape | gen | 105 | 103 | 452 | 0.233 |
cartesian | gen | 80 | 75 | 342 | 0.235 |
cgi | gen | 269 | 268 | 531 | 0.506 |
varargs | gen | 29 | 19 | 20 | 1.428 |
control_flow | gen | 209 | 156 | 120 | 1.742 |
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.5 | 4.5 | 12.3 | 0.36 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.4 | 0.41 |
parse | gen | 3.7 | 3.7 | 9.0 | 0.41 |
cartesian | gen | 3.5 | 3.7 | 8.5 | 0.42 |
scoped_resource | 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 |
cgi | gen | 3.7 | 3.5 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_iter | gen | 3.7 | 3.7 | 8.4 | 0.44 |
tuple_return_value | gen | 3.7 | 3.8 | 8.4 | 0.44 |
control_flow | gen | 3.8 | 3.7 | 8.5 | 0.45 |
fib_recursive | gen | 3.8 | 3.7 | 8.5 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
length | gen | 3.8 | 3.7 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.6 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.6 | 8.4 | 0.66 |
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 | 0 | 20 | 0.000 |
cgi | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 0 | 13 | 0.000 |
escape | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 4 | 4 | 12 | 0.316 |
containers | gen | 10 | 11 | 20 | 0.483 |
scoped_resource | gen | 4 | 0 | 8 | 0.502 |
varargs | gen | 37 | 46 | 60 | 0.612 |
parse | gen | 8 | 4 | 12 | 0.634 |
control_flow | gen | 4 | 8 | 4 | 0.986 |
cartesian | gen | 12 | 12 | 4 | 2.995 |
pea_hello | gen | NA | NA | 4 | NA |