Function
main
({ type, asyncMethod, connections, duration, path })
Source from the content-addressed store, hash-verified
| 169 | }; |
| 170 | |
| 171 | function main({ type, asyncMethod, connections, duration, path }) { |
| 172 | const { server, close } = types[type](asyncMethods[asyncMethod]); |
| 173 | |
| 174 | server |
| 175 | .listen(common.PORT) |
| 176 | .on('listening', () => { |
| 177 | |
| 178 | bench.http({ |
| 179 | path, |
| 180 | connections, |
| 181 | duration, |
| 182 | }, () => { |
| 183 | close(); |
| 184 | }); |
| 185 | }); |
| 186 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected