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 | 34 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 12 | 0.000 |
loops | gen | 0 | 3 | 298 | 0.000 |
modules | gen | 0 | 2 | 187 | 0.000 |
fib_iter | gen | 8 | 8 | 917 | 0.008 |
fib_recursive | gen | 11 | 11 | 885 | 0.012 |
asdl_generated | gen | 11 | 11 | 376 | 0.029 |
parse | gen | 25 | 22 | 772 | 0.033 |
scoped_resource | gen | 49 | 42 | 1,041 | 0.047 |
containers | gen | 8 | 5 | 103 | 0.074 |
files | gen | 8 | 8 | 76 | 0.100 |
tuple_return_value | gen | 20 | 14 | 191 | 0.107 |
length | gen | 42 | 37 | 213 | 0.198 |
cartesian | gen | 88 | 75 | 335 | 0.264 |
escape | gen | 97 | 100 | 348 | 0.280 |
cgi | gen | 263 | 268 | 515 | 0.510 |
varargs | gen | 17 | 17 | 19 | 0.871 |
control_flow | gen | 208 | 161 | 112 | 1.854 |
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 | 12.5 | 0.36 |
parse | gen | 3.7 | 3.8 | 9.0 | 0.41 |
files | gen | 3.5 | 3.8 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.5 | 0.42 |
asdl_generated | gen | 3.5 | 3.7 | 8.4 | 0.42 |
length | gen | 3.5 | 3.9 | 8.4 | 0.42 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.8 | 8.5 | 0.43 |
tuple_return_value | gen | 3.7 | 3.9 | 8.5 | 0.43 |
cartesian | gen | 3.5 | 3.7 | 8.1 | 0.44 |
control_flow | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_recursive | gen | 3.8 | 3.5 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
modules | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_iter | gen | 3.9 | 3.8 | 8.5 | 0.46 |
containers | gen | 28.7 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.6 | 8.5 | 0.66 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 12 | 0.000 |
cgi | gen | 0 | 0 | 4 | 0.000 |
control_flow | gen | 0 | 0 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 5 | 8 | 0.000 |
containers | gen | 8 | 10 | 40 | 0.192 |
gc_stack_roots | gen | 2 | 0 | 8 | 0.228 |
parse | gen | 4 | 4 | 12 | 0.353 |
classes | gen | 3 | 0 | 8 | 0.377 |
modules | gen | 2 | 0 | 4 | 0.445 |
loops | gen | 4 | 0 | 8 | 0.460 |
varargs | gen | 50 | 50 | 61 | 0.816 |
length | gen | 4 | 7 | 4 | 0.955 |
cartesian | gen | 4 | 12 | 4 | 1.008 |
escape | gen | 8 | 4 | 8 | 1.014 |
scoped_resource | gen | 0 | 4 | 0 | NA |