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 |
files | gen | 0 | 4 | 76 | 0.000 |
fib_iter | gen | 8 | 8 | 894 | 0.008 |
modules | gen | 2 | 2 | 178 | 0.010 |
fib_recursive | gen | 11 | 11 | 878 | 0.012 |
loops | gen | 4 | 3 | 295 | 0.013 |
asdl_generated | gen | 11 | 11 | 379 | 0.028 |
containers | gen | 4 | 4 | 114 | 0.034 |
parse | gen | 29 | 19 | 763 | 0.038 |
scoped_resource | gen | 40 | 46 | 1,047 | 0.038 |
tuple_return_value | gen | 17 | 18 | 188 | 0.092 |
classes | gen | 3 | 3 | 30 | 0.105 |
length | gen | 41 | 44 | 204 | 0.200 |
cartesian | gen | 88 | 83 | 322 | 0.274 |
escape | gen | 105 | 97 | 354 | 0.296 |
cgi | gen | 270 | 254 | 503 | 0.536 |
control_flow | gen | 208 | 162 | 105 | 1.990 |
varargs | gen | 19 | 15 | 8 | 2.455 |
gc_stack_roots | gen | 2 | 0 | 0 | inf |
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.7 | 0.41 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
scoped_resource | gen | 3.5 | 3.8 | 7.1 | 0.50 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
cartesian | gen | 3.5 | 3.5 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
escape | gen | 3.5 | 3.7 | 6.8 | 0.52 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.5 | 6.9 | 0.53 |
length | gen | 3.7 | 3.7 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.8 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.7 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
files | gen | 3.8 | 3.7 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.7 | 7.1 | 0.56 |
containers | gen | 28.5 | 28.5 | 47.5 | 0.60 |
varargs | gen | 5.6 | 5.4 | 7.1 | 0.80 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 0 | 8 | 0.000 |
escape | gen | 0 | 8 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 12 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 8 | 12 | 0.000 |
tuple_return_value | gen | 3 | 0 | 8 | 0.432 |
cartesian | gen | 4 | 4 | 8 | 0.504 |
length | gen | 4 | 0 | 8 | 0.511 |
containers | gen | 12 | 12 | 20 | 0.575 |
varargs | gen | 46 | 50 | 63 | 0.736 |
scoped_resource | gen | 8 | 0 | 4 | 2.004 |
files | gen | 8 | 4 | 0 | inf |
classes | gen | 0 | 0 | 0 | NA |