From e167ab71fb113fa38866dd11aa99af7079fb463c Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 13 Sep 2017 22:48:53 -0300 Subject: benchmark: var to const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/13757 Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Gibson Fahnestock Reviewed-By: Tobias Nießen --- benchmark/querystring/querystring-parse.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'benchmark/querystring/querystring-parse.js') diff --git a/benchmark/querystring/querystring-parse.js b/benchmark/querystring/querystring-parse.js index eacbd7f92a..740dfc9d21 100644 --- a/benchmark/querystring/querystring-parse.js +++ b/benchmark/querystring/querystring-parse.js @@ -1,17 +1,17 @@ 'use strict'; -var common = require('../common.js'); -var querystring = require('querystring'); -var inputs = require('../fixtures/url-inputs.js').searchParams; +const common = require('../common.js'); +const querystring = require('querystring'); +const inputs = require('../fixtures/url-inputs.js').searchParams; -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { type: Object.keys(inputs), n: [1e6], }); function main(conf) { - var type = conf.type; - var n = conf.n | 0; - var input = inputs[type]; + const type = conf.type; + const n = conf.n | 0; + const input = inputs[type]; var i; // Execute the function a "sufficient" number of times before the timed // loop to ensure the function is optimized just once. -- cgit v1.2.1