diff options
Diffstat (limited to 'benchmark/path/extname-posix.js')
-rw-r--r-- | benchmark/path/extname-posix.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/path/extname-posix.js b/benchmark/path/extname-posix.js index 1c7d9e9449..ee1ea07eeb 100644 --- a/benchmark/path/extname-posix.js +++ b/benchmark/path/extname-posix.js @@ -15,13 +15,13 @@ const bench = common.createBenchmark(main, { '/foo/bar/baz/asdf/quux', '/foo/bar/baz/asdf/quux.foobarbazasdfquux', ], - n: [1e6] + n: [1e5] }); function main({ n, path }) { bench.start(); for (var i = 0; i < n; i++) { - posix.extname(path); + posix.extname(i % 3 === 0 ? `${path}${i}` : path); } bench.end(n); } |