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

Function main

benchmark/perf_hooks/resourcetiming.js:62–71  ·  view source on GitHub ↗
({ n, observe })

Source from the content-addressed store, hash-verified

60}
61
62function main({ n, observe }) {
63 const obs = new PerformanceObserver(() => {
64 bench.end(n);
65 });
66 obs.observe({ entryTypes: [observe], buffered: true });
67
68 bench.start();
69 for (let i = 0; i < n; i++)
70 test();
71}

Callers

nothing calls this directly

Calls 4

observeMethod · 0.95
testFunction · 0.70
endMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected