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_recursive | gen | 7 | 11 | 919 | 0.008 |
fib_iter | gen | 8 | 8 | 897 | 0.008 |
modules | gen | 2 | 2 | 180 | 0.010 |
loops | gen | 4 | 3 | 287 | 0.013 |
asdl_generated | gen | 11 | 0 | 376 | 0.029 |
parse | gen | 26 | 23 | 761 | 0.034 |
scoped_resource | gen | 48 | 41 | 1,021 | 0.047 |
files | gen | 7 | 4 | 73 | 0.102 |
tuple_return_value | gen | 20 | 18 | 187 | 0.109 |
containers | gen | 12 | 7 | 106 | 0.110 |
classes | gen | 3 | 0 | 19 | 0.162 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.220 |
length | gen | 44 | 40 | 198 | 0.224 |
cartesian | gen | 92 | 84 | 325 | 0.283 |
escape | gen | 105 | 100 | 352 | 0.297 |
cgi | gen | 247 | 244 | 509 | 0.485 |
varargs | gen | 12 | 12 | 12 | 0.951 |
control_flow | gen | 213 | 159 | 114 | 1.862 |
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.3 | 10.7 | 0.40 |
parse | gen | 3.7 | 3.8 | 7.6 | 0.48 |
gc_stack_roots | gen | 3.4 | 3.4 | 6.9 | 0.49 |
escape | gen | 3.5 | 3.4 | 7.1 | 0.50 |
cartesian | gen | 3.5 | 3.7 | 6.9 | 0.51 |
fib_iter | gen | 3.7 | 3.7 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.7 | 3.7 | 6.9 | 0.53 |
files | gen | 3.7 | 3.8 | 6.9 | 0.53 |
length | gen | 3.7 | 3.8 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.7 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
tuple_return_value | gen | 3.8 | 3.7 | 6.8 | 0.56 |
fib_recursive | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.6 | 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 |
cartesian | gen | 0 | 4 | 12 | 0.000 |
classes | gen | 0 | 3 | 12 | 0.000 |
escape | gen | 0 | 4 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 4 | 12 | 0.000 |
loops | gen | 0 | 0 | 12 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
containers | gen | 4 | 7 | 27 | 0.141 |
parse | gen | 4 | 4 | 12 | 0.307 |
fib_recursive | gen | 4 | 0 | 8 | 0.448 |
varargs | gen | 54 | 54 | 61 | 0.888 |
cgi | gen | 8 | 8 | 8 | 0.994 |
asdl_generated | gen | 0 | 11 | 0 | NA |
control_flow | gen | 0 | 4 | 0 | NA |