summaryrefslogtreecommitdiff
path: root/benchmark/path/normalize-posix.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/path/normalize-posix.js')
-rw-r--r--benchmark/path/normalize-posix.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/path/normalize-posix.js b/benchmark/path/normalize-posix.js
index 541f7b9112..454a5ba9ae 100644
--- a/benchmark/path/normalize-posix.js
+++ b/benchmark/path/normalize-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: [
'',
'.',
@@ -15,9 +15,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++) {