diff options
Diffstat (limited to 'benchmark/fs/bench-realpath.js')
-rw-r--r-- | benchmark/fs/bench-realpath.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/fs/bench-realpath.js b/benchmark/fs/bench-realpath.js index d6818d45a5..881bd0031f 100644 --- a/benchmark/fs/bench-realpath.js +++ b/benchmark/fs/bench-realpath.js @@ -8,21 +8,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}`); } function relativePath(n) { |