diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-13 22:48:53 -0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-19 21:14:38 -0300 |
commit | e167ab71fb113fa38866dd11aa99af7079fb463c (patch) | |
tree | 3d91ca0f6e60d08fcab70833b851335e41b53cd0 /benchmark/timers/timers-timeout-pooled.js | |
parent | b1c8f15c5f169e021f7c46eb7b219de95fe97603 (diff) | |
download | node-new-e167ab71fb113fa38866dd11aa99af7079fb463c.tar.gz |
benchmark: var to const
PR-URL: https://github.com/nodejs/node/pull/13757
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'benchmark/timers/timers-timeout-pooled.js')
-rw-r--r-- | benchmark/timers/timers-timeout-pooled.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/timers/timers-timeout-pooled.js b/benchmark/timers/timers-timeout-pooled.js index feaec23237..2e8753a0c3 100644 --- a/benchmark/timers/timers-timeout-pooled.js +++ b/benchmark/timers/timers-timeout-pooled.js @@ -1,12 +1,12 @@ 'use strict'; -var common = require('../common.js'); +const common = require('../common.js'); -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { thousands: [500], }); function main(conf) { - var iterations = +conf.thousands * 1e3; + const iterations = +conf.thousands * 1e3; var count = 0; for (var i = 0; i < iterations; i++) { |