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 |
fib_iter | gen | 8 | 4 | 897 | 0.008 |
modules | gen | 2 | 0 | 175 | 0.010 |
fib_recursive | gen | 11 | 11 | 887 | 0.012 |
loops | gen | 4 | 3 | 287 | 0.013 |
asdl_generated | gen | 11 | 11 | 391 | 0.028 |
parse | gen | 22 | 27 | 744 | 0.030 |
scoped_resource | gen | 44 | 46 | 1,037 | 0.042 |
files | gen | 4 | 7 | 67 | 0.058 |
containers | gen | 12 | 14 | 108 | 0.108 |
tuple_return_value | gen | 20 | 15 | 188 | 0.108 |
classes | gen | 3 | 0 | 22 | 0.148 |
length | gen | 37 | 44 | 203 | 0.181 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.220 |
escape | gen | 100 | 98 | 377 | 0.266 |
cartesian | gen | 86 | 78 | 315 | 0.272 |
cgi | gen | 269 | 267 | 511 | 0.526 |
varargs | gen | 20 | 16 | 12 | 1.651 |
control_flow | gen | 213 | 162 | 114 | 1.865 |
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 |
parse | gen | 3.8 | 3.8 | 7.7 | 0.49 |
asdl_generated | gen | 3.5 | 3.5 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.9 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.5 | 7.1 | 0.52 |
cartesian | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.7 | 6.9 | 0.53 |
gc_stack_roots | gen | 3.7 | 3.4 | 6.9 | 0.53 |
length | gen | 3.7 | 3.7 | 6.9 | 0.53 |
loops | gen | 3.9 | 3.8 | 7.2 | 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.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.5 | 28.5 | 47.8 | 0.60 |
varargs | gen | 5.5 | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
cgi | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 3 | 9 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 8 | 0.000 |
containers | gen | 4 | 0 | 28 | 0.138 |
cartesian | gen | 4 | 8 | 12 | 0.326 |
parse | gen | 7 | 0 | 20 | 0.374 |
files | gen | 4 | 0 | 8 | 0.496 |
varargs | gen | 47 | 51 | 63 | 0.743 |
scoped_resource | gen | 4 | 0 | 4 | 0.991 |
escape | gen | 4 | 12 | 4 | 1.001 |
length | gen | 8 | 0 | 8 | 1.025 |
control_flow | gen | 0 | 0 | 0 | NA |
fib_iter | gen | 0 | 4 | 0 | NA |