(N)
| 45 | |
| 46 | // setImmediate tail recursion, 1 argument |
| 47 | function depth1(N) { |
| 48 | let n = 0; |
| 49 | bench.start(); |
| 50 | setImmediate(cb, 1); |
| 51 | function cb(a1) { |
| 52 | n++; |
| 53 | if (n === N) |
| 54 | bench.end(N); |
| 55 | else |
| 56 | setImmediate(cb, 1); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Concurrent setImmediate, 0 arguments |
| 61 | function breadth(N) { |
no test coverage detected