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 | 3 | 18 | 0.000 |
containers | gen | 0 | 9 | 111 | 0.000 |
fib_iter | gen | 8 | 4 | 885 | 0.008 |
modules | gen | 2 | 2 | 174 | 0.010 |
fib_recursive | gen | 11 | 11 | 880 | 0.012 |
loops | gen | 4 | 3 | 297 | 0.012 |
asdl_generated | gen | 11 | 11 | 375 | 0.029 |
parse | gen | 30 | 23 | 767 | 0.039 |
scoped_resource | gen | 43 | 38 | 1,054 | 0.041 |
files | gen | 4 | 8 | 63 | 0.058 |
tuple_return_value | gen | 20 | 19 | 184 | 0.109 |
length | gen | 44 | 36 | 205 | 0.216 |
cartesian | gen | 74 | 86 | 325 | 0.229 |
escape | gen | 107 | 101 | 343 | 0.311 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.434 |
cgi | gen | 250 | 268 | 517 | 0.484 |
varargs | gen | 21 | 12 | 20 | 1.036 |
control_flow | gen | 207 | 161 | 107 | 1.938 |
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 |
parse | gen | 3.9 | 3.8 | 7.7 | 0.51 |
loops | gen | 3.7 | 3.9 | 7.2 | 0.51 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.4 | 6.9 | 0.51 |
cgi | gen | 3.7 | 3.7 | 7.1 | 0.52 |
fib_iter | gen | 3.7 | 3.7 | 7.1 | 0.52 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.9 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.8 | 7.1 | 0.54 |
control_flow | gen | 3.7 | 3.8 | 6.8 | 0.54 |
files | gen | 3.8 | 3.7 | 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.8 | 6.9 | 0.55 |
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 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 0 | 8 | 0.000 |
escape | gen | 0 | 8 | 12 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 8 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 4 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 12 | 0.000 |
classes | gen | 3 | 0 | 13 | 0.243 |
files | gen | 4 | 0 | 12 | 0.311 |
containers | gen | 15 | 5 | 28 | 0.552 |
varargs | gen | 46 | 54 | 52 | 0.877 |
scoped_resource | gen | 4 | 8 | 4 | 0.988 |
cgi | gen | 4 | 0 | 4 | 0.998 |
cartesian | gen | 16 | 0 | 8 | 1.953 |