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 |
modules | gen | 0 | 2 | 174 | 0.000 |
fib_iter | gen | 8 | 8 | 1,015 | 0.008 |
fib_recursive | gen | 11 | 11 | 920 | 0.012 |
loops | gen | 4 | 3 | 291 | 0.012 |
asdl_generated | gen | 7 | 11 | 375 | 0.019 |
containers | gen | 4 | 10 | 112 | 0.034 |
scoped_resource | gen | 36 | 38 | 1,042 | 0.035 |
parse | gen | 29 | 23 | 769 | 0.038 |
tuple_return_value | gen | 14 | 18 | 180 | 0.077 |
files | gen | 7 | 7 | 72 | 0.103 |
length | gen | 40 | 45 | 206 | 0.196 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.227 |
cartesian | gen | 92 | 87 | 316 | 0.291 |
escape | gen | 103 | 99 | 344 | 0.301 |
classes | gen | 3 | 3 | 8 | 0.413 |
cgi | gen | 247 | 249 | 524 | 0.471 |
varargs | gen | 16 | 12 | 12 | 1.359 |
control_flow | gen | 206 | 158 | 112 | 1.839 |
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.3 | 4.5 | 10.7 | 0.40 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
scoped_resource | gen | 3.7 | 3.8 | 6.9 | 0.53 |
cgi | gen | 3.8 | 3.5 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.9 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.9 | 6.9 | 0.57 |
files | gen | 3.8 | 3.8 | 6.7 | 0.57 |
containers | gen | 28.5 | 28.5 | 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 |
cartesian | gen | 0 | 0 | 12 | 0.000 |
classes | gen | 0 | 0 | 23 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 4 | 4 | 0.000 |
modules | gen | 2 | 0 | 8 | 0.230 |
asdl_generated | gen | 4 | 0 | 8 | 0.448 |
containers | gen | 11 | 5 | 24 | 0.476 |
escape | gen | 4 | 4 | 8 | 0.498 |
tuple_return_value | gen | 7 | 0 | 12 | 0.575 |
varargs | gen | 49 | 53 | 61 | 0.815 |
control_flow | gen | 4 | 4 | 4 | 0.990 |
length | gen | 4 | 0 | 4 | 0.997 |
scoped_resource | gen | 12 | 8 | 8 | 1.502 |
cgi | gen | 8 | 4 | 4 | 1.990 |