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 | 8 | 8 | 903 | 0.008 |
modules | gen | 2 | 2 | 187 | 0.009 |
loops | gen | 4 | 3 | 317 | 0.011 |
fib_recursive | gen | 11 | 11 | 882 | 0.012 |
asdl_generated | gen | 11 | 7 | 378 | 0.028 |
parse | gen | 26 | 27 | 790 | 0.033 |
scoped_resource | gen | 48 | 46 | 1,041 | 0.046 |
tuple_return_value | gen | 15 | 18 | 190 | 0.081 |
containers | gen | 12 | 9 | 120 | 0.097 |
files | gen | 7 | 7 | 75 | 0.098 |
classes | gen | 3 | 0 | 32 | 0.098 |
length | gen | 45 | 47 | 215 | 0.207 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.223 |
cartesian | gen | 91 | 78 | 331 | 0.276 |
escape | gen | 104 | 103 | 352 | 0.295 |
varargs | gen | 12 | 23 | 28 | 0.446 |
cgi | gen | 268 | 248 | 516 | 0.520 |
control_flow | gen | 209 | 161 | 115 | 1.813 |
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.2 | 0.37 |
loops | gen | 3.5 | 3.7 | 8.5 | 0.42 |
fib_iter | gen | 3.5 | 3.9 | 8.4 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.3 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.8 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
files | gen | 3.7 | 3.7 | 8.4 | 0.44 |
tuple_return_value | gen | 3.7 | 3.9 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.9 | 9.0 | 0.44 |
asdl_generated | gen | 3.7 | 3.7 | 8.3 | 0.44 |
fib_recursive | gen | 3.8 | 3.7 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.7 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.4 | 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 | 4 | 8 | 0.000 |
cartesian | gen | 0 | 8 | 8 | 0.000 |
cgi | gen | 0 | 8 | 12 | 0.000 |
classes | gen | 0 | 3 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
length | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 4 | 0.000 |
containers | gen | 4 | 5 | 24 | 0.162 |
tuple_return_value | gen | 4 | 0 | 8 | 0.486 |
escape | gen | 4 | 0 | 8 | 0.499 |
varargs | gen | 53 | 42 | 51 | 1.042 |
parse | gen | 4 | 0 | 4 | 1.083 |
pea_hello | gen | NA | NA | 4 | NA |