Skip to content
Permalink
Browse files

benchmark: fix bench-mkdirp to use recursive option

The original PR didn't update the benchmark after renaming the option.

PR-URL: #23699
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information...
ajafff authored and MylesBorins committed Oct 16, 2018
1 parent 437908a commit c75d4bb106f61ec68d69dc3399a538539714672c
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark/fs/bench-mkdirp.js
@@ -16,7 +16,7 @@ function main({ n }) {
if (cntr-- <= 0)
return bench.end(n);
const pathname = `${tmpdir.path}/${++dirc}/${++dirc}/${++dirc}/${++dirc}`;
fs.mkdir(pathname, { createParents: true }, (err) => {
fs.mkdir(pathname, { recursive: true }, (err) => {
r(cntr);
});
}(n));

0 comments on commit c75d4bb

Please sign in to comment.
You can’t perform that action at this time.