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 | 19 | 0.000 |
containers | gen | 0 | 8 | 108 | 0.000 |
loops | gen | 0 | 3 | 295 | 0.000 |
fib_iter | gen | 8 | 4 | 890 | 0.009 |
modules | gen | 2 | 2 | 182 | 0.010 |
fib_recursive | gen | 11 | 7 | 894 | 0.012 |
asdl_generated | gen | 11 | 11 | 392 | 0.028 |
parse | gen | 22 | 23 | 770 | 0.028 |
scoped_resource | gen | 48 | 37 | 1,034 | 0.046 |
tuple_return_value | gen | 16 | 18 | 183 | 0.089 |
files | gen | 7 | 7 | 72 | 0.103 |
length | gen | 32 | 45 | 203 | 0.158 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.213 |
cartesian | gen | 85 | 87 | 323 | 0.261 |
escape | gen | 102 | 100 | 351 | 0.290 |
varargs | gen | 12 | 16 | 28 | 0.424 |
cgi | gen | 269 | 260 | 505 | 0.533 |
control_flow | gen | 202 | 160 | 114 | 1.769 |
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.9 | 0.41 |
parse | gen | 3.8 | 3.8 | 7.7 | 0.49 |
cgi | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.4 | 6.9 | 0.51 |
length | gen | 3.5 | 3.8 | 6.9 | 0.51 |
cartesian | gen | 3.7 | 3.7 | 7.1 | 0.52 |
modules | gen | 3.7 | 3.8 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 3.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.4 | 28.4 | 47.5 | 0.60 |
varargs | gen | 5.4 | 5.5 | 6.8 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
cgi | gen | 0 | 8 | 8 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 3 | 3 | 12 | 0.278 |
parse | gen | 7 | 4 | 16 | 0.455 |
tuple_return_value | gen | 4 | 0 | 8 | 0.514 |
containers | gen | 16 | 8 | 28 | 0.575 |
loops | gen | 4 | 0 | 4 | 0.914 |
escape | gen | 4 | 4 | 4 | 0.969 |
cartesian | gen | 8 | 0 | 8 | 1.008 |
varargs | gen | 55 | 51 | 44 | 1.260 |
length | gen | 12 | 0 | 4 | 3.028 |
control_flow | gen | 8 | 0 | 0 | inf |
scoped_resource | gen | 0 | 8 | 0 | NA |