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 |
containers | gen | 0 | 7 | 105 | 0.000 |
modules | gen | 0 | 0 | 174 | 0.000 |
fib_iter | gen | 8 | 8 | 896 | 0.008 |
fib_recursive | gen | 12 | 7 | 887 | 0.013 |
loops | gen | 4 | 0 | 287 | 0.013 |
asdl_generated | gen | 11 | 11 | 374 | 0.029 |
parse | gen | 29 | 23 | 763 | 0.038 |
scoped_resource | gen | 49 | 41 | 1,057 | 0.047 |
tuple_return_value | gen | 10 | 18 | 183 | 0.056 |
files | gen | 7 | 0 | 67 | 0.110 |
classes | gen | 3 | 3 | 23 | 0.137 |
length | gen | 44 | 45 | 200 | 0.223 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.233 |
cartesian | gen | 89 | 83 | 329 | 0.271 |
escape | gen | 104 | 96 | 351 | 0.297 |
cgi | gen | 269 | 264 | 513 | 0.525 |
varargs | gen | 19 | 29 | 16 | 1.223 |
control_flow | gen | 210 | 150 | 111 | 1.901 |
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.6 | 0.42 |
escape | gen | 3.5 | 3.7 | 7.1 | 0.50 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
scoped_resource | gen | 3.5 | 3.7 | 7.1 | 0.50 |
cartesian | gen | 3.5 | 3.5 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.8 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 3.8 | 7.1 | 0.52 |
tuple_return_value | gen | 3.7 | 3.7 | 7.1 | 0.52 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.8 | 6.9 | 0.53 |
length | gen | 3.7 | 3.7 | 6.9 | 0.53 |
files | gen | 3.8 | 3.7 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
fib_recursive | gen | 3.8 | 3.7 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.9 | 6.8 | 0.58 |
containers | gen | 28.5 | 28.5 | 47.5 | 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 | 12 | 0.000 |
cgi | gen | 0 | 4 | 4 | 0.000 |
classes | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 12 | 4 | 0.000 |
escape | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 7 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 3 | 8 | 0.000 |
parse | gen | 0 | 4 | 4 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
modules | gen | 2 | 2 | 8 | 0.234 |
containers | gen | 16 | 7 | 31 | 0.505 |
cartesian | gen | 4 | 4 | 8 | 0.511 |
varargs | gen | 47 | 37 | 56 | 0.839 |
tuple_return_value | gen | 10 | 0 | 8 | 1.290 |