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 |
varargs | gen | 0 | 21 | 12 | 0.000 |
fib_iter | gen | 8 | 8 | 904 | 0.009 |
modules | gen | 2 | 2 | 175 | 0.011 |
fib_recursive | gen | 11 | 11 | 901 | 0.012 |
loops | gen | 4 | 3 | 284 | 0.013 |
asdl_generated | gen | 11 | 7 | 383 | 0.028 |
parse | gen | 26 | 27 | 764 | 0.034 |
scoped_resource | gen | 48 | 46 | 1,088 | 0.045 |
containers | gen | 10 | 10 | 116 | 0.090 |
files | gen | 7 | 10 | 67 | 0.107 |
tuple_return_value | gen | 20 | 14 | 180 | 0.113 |
classes | gen | 3 | 3 | 23 | 0.142 |
length | gen | 45 | 37 | 194 | 0.232 |
cartesian | gen | 85 | 87 | 326 | 0.261 |
escape | gen | 100 | 96 | 344 | 0.292 |
cgi | gen | 255 | 268 | 511 | 0.499 |
control_flow | gen | 205 | 159 | 106 | 1.938 |
gc_stack_roots | gen | 2 | 0 | 0 | inf |
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.8 | 0.41 |
cartesian | gen | 3.5 | 3.7 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.8 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
tuple_return_value | gen | 3.5 | 3.7 | 6.7 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 7.1 | 0.54 |
cgi | gen | 3.8 | 3.7 | 6.9 | 0.55 |
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.8 | 6.9 | 0.55 |
length | gen | 3.9 | 3.8 | 7.1 | 0.56 |
fib_recursive | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.7 | 28.6 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 4 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 12 | 0.000 |
length | gen | 0 | 8 | 12 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 5 | 12 | 0.000 |
containers | gen | 5 | 5 | 20 | 0.260 |
parse | gen | 4 | 0 | 8 | 0.460 |
escape | gen | 4 | 8 | 8 | 0.496 |
control_flow | gen | 4 | 0 | 8 | 0.513 |
varargs | gen | 66 | 45 | 60 | 1.108 |
cartesian | gen | 8 | 0 | 0 | inf |
scoped_resource | gen | 0 | 0 | 0 | NA |