summaryrefslogtreecommitdiff
path: root/benchmark/path/makeLong-win32.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/path/makeLong-win32.js')
-rw-r--r--benchmark/path/makeLong-win32.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/benchmark/path/makeLong-win32.js b/benchmark/path/makeLong-win32.js
index 0c1ba38aed..4314692eef 100644
--- a/benchmark/path/makeLong-win32.js
+++ b/benchmark/path/makeLong-win32.js
@@ -1,6 +1,6 @@
'use strict';
const common = require('../common.js');
-const path = require('path');
+const { win32 } = require('path');
const bench = common.createBenchmark(main, {
path: [
@@ -12,14 +12,10 @@ const bench = common.createBenchmark(main, {
n: [1e6]
});
-function main(conf) {
- const n = +conf.n;
- const p = path.win32;
- const input = String(conf.path);
-
+function main({ n, path }) {
bench.start();
for (var i = 0; i < n; i++) {
- p._makeLong(input);
+ win32._makeLong(path);
}
bench.end(n);
}