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

Function main

benchmark/fs/bench-readdirSync.js:14–22  ·  view source on GitHub ↗
({ n, dir, withFileTypes })

Source from the content-addressed store, hash-verified

12
13
14function main({ n, dir, withFileTypes }) {
15 withFileTypes = withFileTypes === 'true';
16 const fullPath = path.resolve(__dirname, '../../', dir);
17 bench.start();
18 for (let i = 0; i < n; i++) {
19 fs.readdirSync(fullPath, { withFileTypes });
20 }
21 bench.end(n);
22}

Callers

nothing calls this directly

Calls 4

resolveMethod · 0.45
startMethod · 0.45
readdirSyncMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…