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 | 0 | 16 | 0.000 |
loops | gen | 0 | 3 | 299 | 0.000 |
fib_iter | gen | 8 | 4 | 897 | 0.008 |
modules | gen | 2 | 2 | 180 | 0.010 |
fib_recursive | gen | 11 | 11 | 914 | 0.012 |
asdl_generated | gen | 7 | 11 | 380 | 0.019 |
containers | gen | 4 | 7 | 117 | 0.033 |
parse | gen | 29 | 27 | 768 | 0.038 |
scoped_resource | gen | 47 | 38 | 1,027 | 0.046 |
files | gen | 4 | 4 | 73 | 0.052 |
tuple_return_value | gen | 17 | 15 | 188 | 0.091 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.147 |
length | gen | 44 | 41 | 199 | 0.222 |
cartesian | gen | 84 | 83 | 330 | 0.255 |
escape | gen | 100 | 88 | 353 | 0.284 |
cgi | gen | 250 | 260 | 506 | 0.495 |
varargs | gen | 19 | 17 | 12 | 1.615 |
control_flow | gen | 205 | 166 | 113 | 1.818 |
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 | 10.7 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 7.1 | 0.48 |
escape | gen | 3.5 | 3.7 | 7.1 | 0.50 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
fib_iter | gen | 3.7 | 3.8 | 7.1 | 0.52 |
length | gen | 3.7 | 3.7 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.7 | 3.9 | 6.9 | 0.53 |
files | gen | 3.8 | 3.8 | 7.1 | 0.54 |
cgi | gen | 3.7 | 3.5 | 6.8 | 0.54 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.5 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.7 | 6.9 | 0.55 |
containers | gen | 28.5 | 28.5 | 47.6 | 0.60 |
varargs | gen | 5.6 | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
length | gen | 0 | 4 | 12 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 8 | 12 | 0.000 |
classes | gen | 3 | 3 | 16 | 0.202 |
cgi | gen | 4 | 4 | 12 | 0.336 |
tuple_return_value | gen | 3 | 4 | 8 | 0.429 |
containers | gen | 12 | 7 | 20 | 0.573 |
varargs | gen | 47 | 50 | 60 | 0.775 |
loops | gen | 4 | 0 | 4 | 0.932 |
files | gen | 4 | 4 | 4 | 0.941 |
control_flow | gen | 4 | 0 | 4 | 0.979 |
cartesian | gen | 8 | 4 | 8 | 1.008 |
asdl_generated | gen | 4 | 0 | 0 | inf |
escape | gen | 4 | 16 | 0 | inf |
fib_recursive | gen | 0 | 0 | 0 | NA |
gc_stack_roots | gen | 0 | 0 | 0 | NA |
parse | gen | 0 | 0 | 0 | NA |