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 |
gc_stack_roots | gen | 0 | 0 | 16 | 0.000 |
fib_iter | gen | 8 | 8 | 899 | 0.009 |
modules | gen | 2 | 0 | 188 | 0.009 |
fib_recursive | gen | 11 | 7 | 883 | 0.012 |
loops | gen | 4 | 3 | 305 | 0.012 |
asdl_generated | gen | 7 | 11 | 384 | 0.019 |
parse | gen | 31 | 27 | 784 | 0.039 |
scoped_resource | gen | 41 | 46 | 1,031 | 0.040 |
files | gen | 4 | 7 | 80 | 0.046 |
containers | gen | 8 | 4 | 128 | 0.062 |
tuple_return_value | gen | 15 | 18 | 192 | 0.080 |
classes | gen | 3 | 0 | 36 | 0.092 |
length | gen | 44 | 47 | 209 | 0.212 |
cartesian | gen | 87 | 74 | 330 | 0.264 |
escape | gen | 101 | 105 | 359 | 0.280 |
cgi | gen | 269 | 260 | 520 | 0.517 |
varargs | gen | 23 | 16 | 36 | 0.646 |
control_flow | gen | 212 | 153 | 119 | 1.782 |
pea_hello | gen | NA | NA | 14 | 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.6 | 12.5 | 0.36 |
escape | gen | 3.4 | 3.7 | 8.4 | 0.41 |
cgi | gen | 3.5 | 3.7 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.7 | 8.5 | 0.42 |
cartesian | gen | 3.5 | 3.5 | 8.4 | 0.42 |
modules | gen | 3.7 | 3.8 | 8.7 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.9 | 8.4 | 0.44 |
scoped_resource | gen | 3.7 | 3.7 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.9 | 9.0 | 0.44 |
length | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.7 | 8.4 | 0.45 |
files | gen | 3.8 | 3.7 | 8.4 | 0.45 |
containers | gen | 28.4 | 28.5 | 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 |
cgi | gen | 0 | 8 | 12 | 0.000 |
classes | gen | 0 | 3 | 4 | 0.000 |
control_flow | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 8 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
parse | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 8 | 11 | 20 | 0.397 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.441 |
asdl_generated | gen | 4 | 0 | 8 | 0.451 |
scoped_resource | gen | 7 | 0 | 16 | 0.465 |
tuple_return_value | gen | 4 | 0 | 8 | 0.481 |
cartesian | gen | 4 | 12 | 8 | 0.497 |
escape | gen | 4 | 0 | 8 | 0.505 |
files | gen | 4 | 0 | 4 | 0.911 |
varargs | gen | 43 | 49 | 44 | 0.969 |
pea_hello | gen | NA | NA | 5 | NA |