Skip to content

Commit

Permalink
fixup! benchmark: add toNamespacedPath bench
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Mar 27, 2024
1 parent 85830da commit 4313187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmark/path/toNamespacedPath-posix.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
'.',
'/tmp/bar',
'/home/node/..',
__dirname + '/..',
posix.join(__dirname, '/..'),
'bar/baz',
],
n: [1e5],
Expand All @@ -22,5 +22,5 @@ function main({ n, path }) {
a = posix.toNamespacedPath(path);
}
bench.end(n);
assert.ok(a + 'a')
assert.ok(a + 'a');
}
4 changes: 2 additions & 2 deletions benchmark/path/toNamespacedPath-win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
'c:/blah\\blah',
'd:/games',
'c:../a',
__dirname + '/..',
win32.join(__dirname, '/..'),
],
n: [1e5],
});
Expand All @@ -24,5 +24,5 @@ function main({ n, path }) {
a = win32.toNamespacedPath(path);
}
bench.end(n);
assert.ok(a + 'a')
assert.ok(a + 'a');
}

0 comments on commit 4313187

Please sign in to comment.