This addresses a bug that had the default 'Details' output showing the total fastest and total slowest request times in the DNS dialup min / max categories.
* Remove unused variable in test
* Add Work.RequestFunc
With this commit, people using hey as a library can generate different
requests, rather than repeating the same request each time. This can be
useful for simulating a variety of requests or replaying traffic.
In certain cases when you're requesting against a proxy or load balancer
that does TLS it's required to also pass in the `ServerName` in order
for the TLS handshake to work correctly.
This PR simply uses `Request.Host` to transfer that knowledge, which
ultimately comes from `-host <host>`.
* Add a duration parameter z. If specified hey sends requests until given time period is passed, then stops and exits.
* Change expectations, Currently q is only upper limit and per worker.
* Update readme with new parameters.
* Make result channel bounded by a reasonable value, not N.
* Incrementally update latency metrics, also only present histogram / latency values for a maximum number of values.
* Initialize latency lists with correct capacity.
* Use a single transport object that is shared by all workers.
* Gracefully stop workers in case of an interrupt and print partial report.
Fixes #73, #31 and #67
`http.NewRequest(url, method, body)` usually handles req.CL, but we must calculate it since body is initially passed as nil for cloneRequest to handle later on.
Fixes#36.