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

Function runAsyncBench

benchmark/fs/bench-accessSync.js:27–35  ·  view source on GitHub ↗
(n, path)

Source from the content-addressed store, hash-verified

25}
26
27function runAsyncBench(n, path) {
28 (function r(cntr, path) {
29 if (cntr-- <= 0)
30 return bench.end(n);
31 fs.access(path, () => {
32 r(cntr, path);
33 });
34 })(n, path);
35}
36
37function main({ n, type, method }) {
38 let path;

Callers 1

mainFunction · 0.85

Calls 3

rFunction · 0.50
endMethod · 0.45
accessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…