benchmark: use destructuring and more
There is often confusion about using e.g. +conf.n
in the bench due to historical reasons.
This cleans this up in all benchmark files and I switched to use destructuring to reduce the code size. It actually reducing the overall changed lines significantly.
While going through the benchmark files I also found a couple other things that would be nice to refactor but I would like to get this in first (if it is going to be accepted due to the churn).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
benchmark