Function
main
({ type, len, chunks, c, chunkedEnc, duration })
Source from the content-addressed store, hash-verified
| 12 | }); |
| 13 | |
| 14 | function main({ type, len, chunks, c, chunkedEnc, duration }) { |
| 15 | const server = require('../fixtures/simple-http-server.js') |
| 16 | .listen(0) |
| 17 | .on('listening', () => { |
| 18 | const path = `/${type}/${len}/${chunks}/normal/${chunkedEnc}`; |
| 19 | |
| 20 | bench.http({ |
| 21 | path, |
| 22 | connections: c, |
| 23 | duration, |
| 24 | port: server.address().port, |
| 25 | }, () => { |
| 26 | server.close(); |
| 27 | }); |
| 28 | }); |
| 29 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…