summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorKlaus Meinhardt <klaus.meinhardt1@gmail.com>2018-10-16 21:18:10 +0200
committerMichaël Zasso <targos@protonmail.com>2018-10-28 15:09:41 +0100
commit6b170f7c157f7e7f8a7933c5bae712d2e382010b (patch)
tree920714e7976bbd0daf1ba92e22f7f0599294c9cc /benchmark
parent35f9cd22f53639624c77b1af84affe4d7ae9cfb8 (diff)
downloadandroid-node-v8-6b170f7c157f7e7f8a7933c5bae712d2e382010b.tar.gz
android-node-v8-6b170f7c157f7e7f8a7933c5bae712d2e382010b.tar.bz2
android-node-v8-6b170f7c157f7e7f8a7933c5bae712d2e382010b.zip
benchmark: fix bench-mkdirp to use recursive option
The original PR didn't update the benchmark after renaming the option. PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/fs/bench-mkdirp.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/fs/bench-mkdirp.js b/benchmark/fs/bench-mkdirp.js
index 96a792c35a..b9e62045f6 100644
--- a/benchmark/fs/bench-mkdirp.js
+++ b/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));