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 | 8 | 896 | 0.008 |
modules | gen | 2 | 2 | 179 | 0.010 |
fib_recursive | gen | 11 | 11 | 999 | 0.011 |
loops | gen | 4 | 3 | 291 | 0.013 |
asdl_generated | gen | 5 | 7 | 370 | 0.015 |
parse | gen | 23 | 23 | 769 | 0.029 |
containers | gen | 4 | 7 | 108 | 0.036 |
scoped_resource | gen | 43 | 46 | 1,032 | 0.042 |
tuple_return_value | gen | 20 | 19 | 186 | 0.108 |
files | gen | 7 | 4 | 68 | 0.109 |
classes | gen | 3 | 0 | 15 | 0.203 |
length | gen | 45 | 45 | 203 | 0.222 |
escape | gen | 95 | 109 | 352 | 0.270 |
cartesian | gen | 101 | 83 | 318 | 0.317 |
cgi | gen | 269 | 267 | 505 | 0.532 |
varargs | gen | 19 | 16 | 24 | 0.798 |
control_flow | gen | 206 | 160 | 108 | 1.916 |
gc_stack_roots | gen | 0 | 2 | 0 | NA |
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.8 | 0.40 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_iter | gen | 3.8 | 3.8 | 7.1 | 0.54 |
files | gen | 3.8 | 3.7 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.7 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
loops | gen | 3.8 | 3.7 | 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.5 | 47.6 | 0.60 |
varargs | gen | 5.6 | 5.4 | 6.9 | 0.81 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cartesian | gen | 0 | 4 | 12 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 3 | 15 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 2 | 0 | 12 | 0.153 |
containers | gen | 12 | 7 | 28 | 0.418 |
control_flow | gen | 4 | 0 | 8 | 0.507 |
asdl_generated | gen | 5 | 4 | 8 | 0.681 |
parse | gen | 8 | 4 | 8 | 0.945 |
varargs | gen | 46 | 49 | 48 | 0.957 |
scoped_resource | gen | 4 | 0 | 4 | 0.986 |
escape | gen | 12 | 0 | 4 | 2.965 |
fib_iter | gen | 0 | 0 | 0 | NA |