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 |
containers | gen | 0 | 4 | 116 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 7 | 11 | 907 | 0.008 |
fib_iter | gen | 8 | 4 | 906 | 0.008 |
modules | gen | 2 | 2 | 188 | 0.010 |
loops | gen | 4 | 3 | 303 | 0.013 |
asdl_generated | gen | 11 | 4 | 385 | 0.028 |
parse | gen | 30 | 30 | 775 | 0.039 |
files | gen | 4 | 4 | 79 | 0.046 |
scoped_resource | gen | 47 | 46 | 1,028 | 0.046 |
tuple_return_value | gen | 19 | 20 | 194 | 0.099 |
classes | gen | 3 | 3 | 23 | 0.141 |
length | gen | 41 | 43 | 210 | 0.194 |
cartesian | gen | 83 | 88 | 333 | 0.250 |
escape | gen | 103 | 99 | 358 | 0.288 |
cgi | gen | 265 | 264 | 515 | 0.514 |
varargs | gen | 17 | 19 | 24 | 0.684 |
control_flow | gen | 209 | 162 | 113 | 1.858 |
pea_hello | gen | NA | NA | 11 | 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.36 |
loops | gen | 3.5 | 3.8 | 8.5 | 0.42 |
asdl_generated | gen | 3.5 | 3.7 | 8.4 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.0 | 0.42 |
fib_recursive | gen | 3.7 | 3.5 | 8.5 | 0.43 |
length | gen | 3.7 | 3.9 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.5 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.7 | 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 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.7 | 28.7 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.5 | 0.65 |
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 | 8 | 4 | 0.000 |
classes | gen | 0 | 0 | 15 | 0.000 |
control_flow | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.154 |
escape | gen | 4 | 4 | 12 | 0.332 |
cgi | gen | 4 | 4 | 12 | 0.335 |
fib_recursive | gen | 4 | 0 | 8 | 0.449 |
length | gen | 4 | 4 | 8 | 0.505 |
containers | gen | 15 | 11 | 28 | 0.545 |
cartesian | gen | 8 | 4 | 12 | 0.660 |
files | gen | 4 | 4 | 4 | 0.877 |
varargs | gen | 50 | 47 | 56 | 0.880 |
pea_hello | gen | NA | NA | 7 | NA |