()
| 47 | } |
| 48 | |
| 49 | function broadcast() { |
| 50 | if (broadcasts++ === n) { |
| 51 | bench.end(n); |
| 52 | for (const worker of workerObjs) { |
| 53 | worker.unref(); |
| 54 | } |
| 55 | return; |
| 56 | } |
| 57 | for (const worker of workerObjs) { |
| 58 | for (let i = 0; i < sends; ++i) |
| 59 | worker.postMessage(payload); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function onMessage() { |
| 64 | if (++msgCount === expectedPerBroadcast) { |
no test coverage detected
searching dependent graphs…