diff options
Diffstat (limited to 'benchmark/path/extname-posix.js')
-rw-r--r-- | benchmark/path/extname-posix.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/path/extname-posix.js b/benchmark/path/extname-posix.js index 25d53d08e1..4b6e056094 100644 --- a/benchmark/path/extname-posix.js +++ b/benchmark/path/extname-posix.js @@ -1,8 +1,8 @@ 'use strict'; -var common = require('../common.js'); -var path = require('path'); +const common = require('../common.js'); +const path = require('path'); -var bench = common.createBenchmark(main, { +const bench = common.createBenchmark(main, { path: [ '', '/', @@ -19,9 +19,9 @@ var bench = common.createBenchmark(main, { }); function main(conf) { - var n = +conf.n; - var p = path.posix; - var input = String(conf.path); + const n = +conf.n; + const p = path.posix; + const input = String(conf.path); bench.start(); for (var i = 0; i < n; i++) { |