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 | 19 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 14 | 0.000 |
modules | gen | 0 | 2 | 189 | 0.000 |
fib_iter | gen | 4 | 8 | 929 | 0.004 |
fib_recursive | gen | 11 | 7 | 896 | 0.012 |
loops | gen | 4 | 3 | 305 | 0.012 |
asdl_generated | gen | 11 | 11 | 379 | 0.028 |
parse | gen | 30 | 28 | 796 | 0.038 |
scoped_resource | gen | 44 | 46 | 1,037 | 0.043 |
containers | gen | 8 | 10 | 124 | 0.064 |
tuple_return_value | gen | 15 | 28 | 193 | 0.080 |
files | gen | 7 | 8 | 79 | 0.093 |
cartesian | gen | 72 | 78 | 341 | 0.211 |
length | gen | 45 | 33 | 207 | 0.218 |
escape | gen | 105 | 94 | 350 | 0.301 |
cgi | gen | 269 | 241 | 531 | 0.506 |
varargs | gen | 16 | 8 | 28 | 0.588 |
control_flow | gen | 207 | 168 | 119 | 1.732 |
pea_hello | gen | NA | NA | 7 | 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.5 | 12.3 | 0.35 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
parse | gen | 3.8 | 3.9 | 9.0 | 0.42 |
fib_recursive | gen | 3.7 | 3.9 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cartesian | gen | 3.7 | 3.5 | 8.4 | 0.44 |
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.8 | 8.4 | 0.44 |
loops | gen | 3.7 | 3.8 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.7 | 8.7 | 0.44 |
tuple_return_value | gen | 3.8 | 3.7 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
files | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.7 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.7 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.4 | 5.5 | 8.4 | 0.64 |
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 | 12 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
escape | gen | 0 | 8 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 12 | 12 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 0 | 12 | 0.000 |
classes | gen | 3 | 0 | 19 | 0.166 |
modules | gen | 2 | 0 | 8 | 0.224 |
gc_stack_roots | gen | 2 | 0 | 7 | 0.267 |
fib_iter | gen | 4 | 0 | 12 | 0.315 |
containers | gen | 8 | 5 | 20 | 0.397 |
tuple_return_value | gen | 4 | 4 | 8 | 0.481 |
scoped_resource | gen | 4 | 0 | 8 | 0.501 |
varargs | gen | 49 | 57 | 52 | 0.950 |
cartesian | gen | 20 | 8 | 0 | inf |
cgi | gen | 0 | 12 | 0 | NA |
pea_hello | gen | NA | NA | 11 | NA |