diff options
Diffstat (limited to 'benchmark/path/format-posix.js')
-rw-r--r-- | benchmark/path/format-posix.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/benchmark/path/format-posix.js b/benchmark/path/format-posix.js index 04f6207775..fe20cc3c4f 100644 --- a/benchmark/path/format-posix.js +++ b/benchmark/path/format-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, { props: [ ['/', '/home/user/dir', 'index.html', '.html', 'index'].join('|') ], @@ -10,10 +10,10 @@ var bench = common.createBenchmark(main, { }); function main(conf) { - var n = +conf.n; - var p = path.posix; - var props = String(conf.props).split('|'); - var obj = { + const n = +conf.n; + const p = path.posix; + const props = String(conf.props).split('|'); + const obj = { root: props[0] || '', dir: props[1] || '', base: props[2] || '', |