({ n })
| 10 | }); |
| 11 | |
| 12 | function main({ n }) { |
| 13 | const histogram = createHistogram(); |
| 14 | bench.start(); |
| 15 | for (let i = 0; i < n; i++) { |
| 16 | histogram.record(i + 1); |
| 17 | /* eslint-disable no-unused-expressions */ |
| 18 | histogram.max; |
| 19 | histogram.mean; |
| 20 | /* eslint-enable no-unused-expressions */ |
| 21 | } |
| 22 | bench.end(n); |
| 23 | |
| 24 | // Avoid V8 deadcode (elimination) |
| 25 | assert.ok(histogram); |
| 26 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…