()
| 40 | } |
| 41 | |
| 42 | function onsendMulti() { |
| 43 | if (sent++ % n === 0) { |
| 44 | // The setImmediate() is necessary to have event loop progress on OSes |
| 45 | // that only perform synchronous I/O on nonblocking UDP sockets. |
| 46 | setImmediate(() => { |
| 47 | for (let i = 0; i < n; i++) { |
| 48 | socket.send(chunk, PORT, '127.0.0.1', onsend); |
| 49 | } |
| 50 | }); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | socket.on('listening', () => { |
| 55 | bench.start(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…