benchmark: refactor to eliminate redeclared vars
authorRich Trott <rtrott@gmail.com>
Sun, 28 Feb 2016 05:56:18 +0000 (21:56 -0800)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 20:07:09 +0000 (13:07 -0700)
commit4be2065dbcd31376d9717b60dda6eaaa21375656
treee95f11665917ec156aca9239adb32c453e64a805
parent6dc49ae203483663182ccb287b19bdda55ecd578
benchmark: refactor to eliminate redeclared vars

In order to comply with linting rules used in the rest of the code base,
eliminate redeclared variables. A conservative approach is used so as to
avoid unintentional performance issues (for example, as might be seen in
some situations when using `let` instead of `var`).

PR-URL: https://github.com/nodejs/node/pull/5773
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
benchmark/buffers/buffer-base64-encode.js
benchmark/buffers/buffer-tostring.js
benchmark/compare.js
benchmark/crypto/cipher-stream.js
benchmark/events/ee-add-remove.js
benchmark/fs-write-stream-throughput.js
benchmark/http_simple.js
benchmark/http_simple_auto.js
benchmark/misc/string-decoder.js
benchmark/querystring/querystring-parse.js