MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

benchmark/fs/bench-realpathSync.js:17–24  ·  view source on GitHub ↗
({ n, pathType })

Source from the content-addressed store, hash-verified

15
16
17function main({ n, pathType }) {
18 const path = pathType === 'relative' ? relative_path : resolved_path;
19 bench.start();
20 for (let i = 0; i < n; i++) {
21 fs.realpathSync(path);
22 }
23 bench.end(n);
24}

Callers

nothing calls this directly

Calls 3

startMethod · 0.45
realpathSyncMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected