summaryrefslogtreecommitdiff
path: root/benchmark/fs/bench-realpathSync.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/fs/bench-realpathSync.js')
-rw-r--r--benchmark/fs/bench-realpathSync.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/fs/bench-realpathSync.js b/benchmark/fs/bench-realpathSync.js
index 27a66631ab..2239d9748a 100644
--- a/benchmark/fs/bench-realpathSync.js
+++ b/benchmark/fs/bench-realpathSync.js
@@ -10,21 +10,21 @@ const relative_path = path.relative(__dirname, '../../lib/');
const bench = common.createBenchmark(main, {
n: [1e4],
- type: ['relative', 'resolved'],
+ pathType: ['relative', 'resolved'],
});
function main(conf) {
const n = conf.n >>> 0;
- const type = conf.type;
+ const pathType = conf.pathType;
bench.start();
- if (type === 'relative')
+ if (pathType === 'relative')
relativePath(n);
- else if (type === 'resolved')
+ else if (pathType === 'resolved')
resolvedPath(n);
else
- throw new Error(`unknown "type": ${type}`);
+ throw new Error(`unknown "pathType": ${pathType}`);
bench.end(n);
}