MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

benchmark/fs/bench-mkdirp.js:13–23  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

11});
12
13function main({ n }) {
14 bench.start();
15 (function r(cntr) {
16 if (cntr-- <= 0)
17 return bench.end(n);
18 const pathname = `${tmpdir.path}/${++dirc}/${++dirc}/${++dirc}/${++dirc}`;
19 fs.mkdir(pathname, { recursive: true }, (err) => {
20 r(cntr);
21 });
22 }(n));
23}

Callers

nothing calls this directly

Calls 4

rFunction · 0.50
startMethod · 0.45
endMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…