benchmark: convert var to es6 const, let
Converted var variable to es6 const and let to maintain consistency with other benchmark files. Also clean up the types array to make the files more succinct.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
benchmark