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 | 23 | 0.000 |
fib_iter | gen | 4 | 8 | 914 | 0.004 |
modules | gen | 2 | 2 | 179 | 0.010 |
loops | gen | 4 | 3 | 308 | 0.012 |
fib_recursive | gen | 11 | 7 | 884 | 0.012 |
asdl_generated | gen | 11 | 7 | 393 | 0.027 |
parse | gen | 31 | 27 | 764 | 0.040 |
scoped_resource | gen | 48 | 46 | 1,030 | 0.047 |
tuple_return_value | gen | 19 | 18 | 193 | 0.100 |
containers | gen | 12 | 9 | 115 | 0.102 |
files | gen | 8 | 7 | 71 | 0.105 |
length | gen | 40 | 46 | 206 | 0.195 |
cartesian | gen | 83 | 86 | 336 | 0.246 |
escape | gen | 96 | 92 | 352 | 0.274 |
gc_stack_roots | gen | 2 | 2 | 5 | 0.350 |
cgi | gen | 265 | 253 | 521 | 0.507 |
varargs | gen | 19 | 31 | 28 | 0.690 |
control_flow | gen | 211 | 167 | 112 | 1.880 |
pea_hello | gen | NA | NA | 9 | 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.5 | 0.36 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.4 | 0.41 |
modules | gen | 3.5 | 3.8 | 8.7 | 0.41 |
asdl_generated | gen | 3.5 | 3.5 | 8.5 | 0.42 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.8 | 8.5 | 0.43 |
parse | gen | 3.9 | 3.9 | 9.1 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.4 | 0.44 |
files | gen | 3.7 | 3.8 | 8.4 | 0.44 |
scoped_resource | 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.9 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.9 | 3.8 | 8.5 | 0.46 |
containers | gen | 28.6 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.4 | 5.5 | 8.5 | 0.63 |
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 | 4 | 0.000 |
control_flow | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 12 | 0.000 |
files | gen | 0 | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 15 | 0.000 |
modules | gen | 0 | 0 | 16 | 0.000 |
parse | gen | 0 | 0 | 16 | 0.000 |
scoped_resource | gen | 0 | 0 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 4 | 5 | 28 | 0.141 |
classes | gen | 3 | 0 | 16 | 0.205 |
length | gen | 4 | 0 | 12 | 0.331 |
cgi | gen | 4 | 0 | 8 | 0.500 |
cartesian | gen | 8 | 0 | 12 | 0.656 |
varargs | gen | 46 | 35 | 52 | 0.891 |
escape | gen | 8 | 12 | 4 | 2.007 |
fib_iter | gen | 4 | 0 | 0 | inf |
loops | gen | 0 | 0 | 0 | NA |
pea_hello | gen | NA | NA | 9 | NA |