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 |
asdl_generated | gen | 0 | 11 | 385 | 0.000 |
modules | gen | 0 | 2 | 189 | 0.000 |
fib_iter | gen | 8 | 8 | 896 | 0.009 |
fib_recursive | gen | 11 | 11 | 891 | 0.012 |
loops | gen | 4 | 3 | 315 | 0.012 |
parse | gen | 30 | 15 | 779 | 0.039 |
scoped_resource | gen | 47 | 45 | 1,027 | 0.046 |
containers | gen | 8 | 7 | 114 | 0.068 |
tuple_return_value | gen | 15 | 18 | 194 | 0.079 |
files | gen | 7 | 4 | 85 | 0.086 |
classes | gen | 3 | 0 | 27 | 0.114 |
gc_stack_roots | gen | 2 | 2 | 15 | 0.119 |
length | gen | 34 | 42 | 215 | 0.157 |
cartesian | gen | 80 | 82 | 336 | 0.237 |
escape | gen | 97 | 94 | 349 | 0.278 |
varargs | gen | 12 | 12 | 36 | 0.343 |
cgi | gen | 255 | 267 | 524 | 0.487 |
control_flow | gen | 201 | 161 | 115 | 1.746 |
pea_hello | gen | NA | NA | 4 | 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.4 | 3.4 | 8.5 | 0.40 |
asdl_generated | gen | 3.5 | 3.8 | 8.5 | 0.42 |
fib_recursive | gen | 3.5 | 3.7 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.9 | 9.1 | 0.42 |
cgi | gen | 3.5 | 3.7 | 8.4 | 0.42 |
escape | gen | 3.7 | 3.5 | 8.5 | 0.43 |
length | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.8 | 8.4 | 0.44 |
control_flow | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.9 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
containers | gen | 28.5 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.5 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 3 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 5 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 12 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 16 | 0.000 |
modules | gen | 2 | 0 | 8 | 0.233 |
containers | gen | 8 | 7 | 28 | 0.271 |
tuple_return_value | gen | 4 | 0 | 8 | 0.485 |
control_flow | gen | 4 | 0 | 8 | 0.496 |
escape | gen | 8 | 8 | 12 | 0.680 |
varargs | gen | 53 | 52 | 44 | 1.216 |
length | gen | 11 | 4 | 8 | 1.414 |
asdl_generated | gen | 11 | 0 | 4 | 2.709 |
cartesian | gen | 12 | 4 | 4 | 2.990 |
files | gen | 0 | 4 | 0 | NA |
pea_hello | gen | NA | NA | 15 | NA |