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

Function runBench

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

Source from the content-addressed store, hash-verified

15});
16
17function runBench(n, path) {
18 for (let i = 0; i < n; i++) {
19 try {
20 fs.accessSync(path);
21 } catch {
22 // do nothing
23 }
24 }
25}
26
27function runAsyncBench(n, path) {
28 (function r(cntr, path) {

Callers 1

mainFunction · 0.70

Calls 1

accessSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…