Function
main
({ apm, connections, duration, type, len, chunks, chunkedEnc })
Source from the content-addressed store, hash-verified
| 15 | }); |
| 16 | |
| 17 | function main({ apm, connections, duration, type, len, chunks, chunkedEnc }) { |
| 18 | const done = { none, patch, diagnostics_channel }[apm](); |
| 19 | |
| 20 | const server = require('../fixtures/simple-http-server.js') |
| 21 | .listen(common.PORT) |
| 22 | .on('listening', () => { |
| 23 | const path = `/${type}/${len}/${chunks}/normal/${chunkedEnc}`; |
| 24 | bench.http({ |
| 25 | path, |
| 26 | connections, |
| 27 | duration, |
| 28 | }, () => { |
| 29 | server.close(); |
| 30 | if (done) done(); |
| 31 | }); |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | function none() {} |
| 36 | |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…