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

Function breadth4

benchmark/timers/immediate.js:89–101  ·  view source on GitHub ↗
(N)

Source from the content-addressed store, hash-verified

87
88// Concurrent setImmediate, 4 arguments
89function breadth4(N) {
90 N /= 2;
91 let n = 0;
92 bench.start();
93 function cb(a1, a2, a3, a4) {
94 n++;
95 if (n === N)
96 bench.end(n);
97 }
98 for (let i = 0; i < N; i++) {
99 setImmediate(cb, 1, 2, 3, 4);
100 }
101}
102
103function clear(N) {
104 N *= 4;

Callers 1

mainFunction · 0.85

Calls 2

setImmediateFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…