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 | 20 | 0.000 |
loops | gen | 0 | 3 | 299 | 0.000 |
fib_iter | gen | 8 | 4 | 909 | 0.008 |
modules | gen | 2 | 2 | 191 | 0.010 |
fib_recursive | gen | 11 | 11 | 888 | 0.012 |
asdl_generated | gen | 5 | 11 | 376 | 0.014 |
containers | gen | 4 | 8 | 107 | 0.037 |
parse | gen | 29 | 27 | 771 | 0.038 |
scoped_resource | gen | 48 | 43 | 1,037 | 0.046 |
tuple_return_value | gen | 17 | 19 | 185 | 0.091 |
files | gen | 7 | 4 | 78 | 0.094 |
gc_stack_roots | gen | 2 | 2 | 16 | 0.112 |
length | gen | 37 | 44 | 204 | 0.184 |
cartesian | gen | 87 | 86 | 338 | 0.259 |
escape | gen | 106 | 99 | 359 | 0.294 |
varargs | gen | 8 | 12 | 19 | 0.431 |
cgi | gen | 242 | 252 | 518 | 0.466 |
control_flow | gen | 205 | 160 | 120 | 1.706 |
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 | 12.3 | 0.35 |
escape | gen | 3.5 | 3.8 | 8.5 | 0.42 |
cartesian | gen | 3.5 | 3.5 | 8.4 | 0.42 |
cgi | gen | 3.5 | 3.5 | 8.4 | 0.42 |
fib_recursive | gen | 3.5 | 3.8 | 8.4 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.4 | 0.42 |
modules | gen | 3.7 | 3.8 | 8.7 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_iter | gen | 3.7 | 3.8 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.9 | 9.0 | 0.44 |
control_flow | gen | 3.8 | 3.9 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
length | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.5 | 8.4 | 0.45 |
tuple_return_value | gen | 3.9 | 3.5 | 8.4 | 0.47 |
containers | gen | 28.6 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.4 | 0.67 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
escape | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 0 | 4 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
classes | gen | 3 | 0 | 20 | 0.160 |
tuple_return_value | gen | 3 | 0 | 16 | 0.215 |
containers | gen | 12 | 8 | 39 | 0.299 |
asdl_generated | gen | 5 | 0 | 12 | 0.451 |
loops | gen | 4 | 0 | 8 | 0.472 |
cartesian | gen | 4 | 4 | 8 | 0.500 |
length | gen | 7 | 8 | 12 | 0.626 |
varargs | gen | 58 | 53 | 62 | 0.944 |
control_flow | gen | 4 | 4 | 4 | 0.984 |
cgi | gen | 12 | 0 | 12 | 1.009 |
modules | gen | 0 | 0 | 0 | NA |