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

Function breadth1

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

Source from the content-addressed store, hash-verified

73
74// Concurrent setImmediate, 1 argument
75function breadth1(N) {
76 let n = 0;
77 bench.start();
78 function cb(a1) {
79 n++;
80 if (n === N)
81 bench.end(n);
82 }
83 for (let i = 0; i < N; i++) {
84 setImmediate(cb, 1);
85 }
86}
87
88// Concurrent setImmediate, 4 arguments
89function breadth4(N) {

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…