(port)
| 46 | }); |
| 47 | |
| 48 | function pummel(port) { |
| 49 | options.port = port; |
| 50 | const req = http.request(options, (res) => { |
| 51 | nreqs++; |
| 52 | pummel(port); // Line up next request. |
| 53 | res.resume(); |
| 54 | }); |
| 55 | if (method === 'write') { |
| 56 | req.write(chunk, encoding); |
| 57 | req.end(); |
| 58 | } else { |
| 59 | req.end(chunk, encoding); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function done() { |
| 64 | bench.end(nreqs); |