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

Function benchELUPassed

benchmark/perf_hooks/bench-eventlooputil.js:53–64  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

51}
52
53function benchELUPassed(n) {
54 // Need to put this in setImmediate or will always return 0.
55 setImmediate(() => {
56 let elu = eventLoopUtilization();
57 assert(elu.active + elu.idle > 0);
58
59 bench.start();
60 for (let i = 0; i < n; i++)
61 elu = eventLoopUtilization(elu);
62 bench.end(n);
63 });
64}

Callers 1

mainFunction · 0.70

Calls 5

setImmediateFunction · 0.50
eventLoopUtilizationFunction · 0.50
assertFunction · 0.50
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…