(n)
| 38 | } |
| 39 | |
| 40 | function benchELUSimple(n) { |
| 41 | // Need to put this in setImmediate or will always return 0. |
| 42 | setImmediate(() => { |
| 43 | const elu = eventLoopUtilization(); |
| 44 | assert(elu.active + elu.idle > 0); |
| 45 | |
| 46 | bench.start(); |
| 47 | for (let i = 0; i < n; i++) |
| 48 | eventLoopUtilization(); |
| 49 | bench.end(n); |
| 50 | }); |
| 51 | } |
| 52 | |
| 53 | function benchELUPassed(n) { |
| 54 | // Need to put this in setImmediate or will always return 0. |
no test coverage detected