302 Commits
Author SHA1 Message Date
JBD 5626f79b86 Remove the reference to the old fork 2026-01-10 12:54:37 -08:00
JBD a3f5859307 Add some examples to README 2026-01-10 12:52:38 -08:00
JBD e64ec7a3ad Add upload target to the Makefile and update the links v0.1.5 2026-01-10 12:48:30 -08:00
JBD 6731f19b6c Remove vendor directory 2026-01-10 12:26:38 -08:00
JBD dc0126a7ec Use the standard library request cloner 2026-01-10 12:24:33 -08:00
JBD 2a27143475 Bump the go version 2026-01-10 12:22:04 -08:00
JBD 0dce5def08 Remove custom min function
Go 1.21+ has a built-in min function.
2026-01-10 12:21:22 -08:00
JBD a730114f7a Fix the broken fmt.Fprintf calls 2026-01-10 12:19:52 -08:00
JBD 1bdb499f8c Remove obsolete build status badge from Travis 2026-01-10 12:09:10 -08:00
JBD 289937ff99 Fix go version format 2026-01-10 12:06:19 -08:00
JBD 503e63c540 go mod tidy and go mod vendor 2026-01-10 12:04:16 -08:00
JBD 18a4569ad4 Use time.NewTicker() which returns a stoppable ticker
And stop the ticker to avoid the existing leak.
2026-01-10 12:02:17 -08:00
Jaana Dogan 50df51ac60 Introduce CI with GitHub Actions (#332) 2026-01-10 11:58:02 -08:00
JBD 011d039cee Remove deprecated ioutil 2026-01-10 11:55:48 -08:00
Christopher Page 898582754e Updated User-Agent header (#87) 2021-03-23 16:39:03 -07:00
rui 718efda205 Upgrade deps (#178)
* Bump to go v1.13 for travis
* Upgrade deps to the latest
2021-03-23 16:38:00 -07:00
Tim Straley 01fa416297 Fix DNS dialup detailed output in print.go (#207)
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.
2021-03-23 16:37:14 -07:00
JBD 33a965eeeb Fix the broken download URLs 2020-12-18 19:26:43 -08:00
Justin J. Novack cd86a706d7 Create Dockerfile (#226)
Added Dockerfile
2020-11-24 18:27:55 -08:00
Tom Payne af177063f8 Add Work.RequestFunc (#149)
* 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.
v0.1.4
2020-08-05 19:32:57 -07:00
Ashley f3676ef133 Update README.md (#191) 2020-01-22 19:04:26 -08:00
Ashley 36f181ad99 Clarify -c and -q flag description (#190) v0.1.3 2020-01-17 22:52:17 -08:00
JBD e409613c17 Fix installation 2019-10-15 11:04:14 -07:00
chenrui e6a0e49fa7 Add Homebrew installation option (#160) 2019-10-15 11:02:47 -07:00
JBD 22735a3bf7 Bump Go CI version to 1.12 2019-09-27 12:59:11 -07:00
JBD 4c765ce16d Fix formatting on README 2019-08-01 13:50:24 -07:00
JBD 1a1cc26b65 Add release script and publish binaries 2019-08-01 13:33:11 -07:00
JBD 01803349ac Switch to Go modules v0.1.2 2018-10-17 15:00:06 -07:00
Erwin van Eyk 3dd84216e7 Add request offset to csv (#126) v0.1.1 2018-09-18 11:44:53 -07:00
Erwin van Eyk 9fdda5aed1 Print status code of each request in csv output (#122) 2018-09-04 17:18:46 -07:00
Egon Elbre f3e8979c77 Improve hey on Windows (#108)
Fixes #107.
2018-04-27 10:19:23 -07:00
Daniel López 61cf9920ea Custom output formatter (#97) 2018-03-12 12:26:25 -07:00
Cyril David 356507962d Add server name to TLS parameters (#69)
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>`.
2018-02-08 12:35:40 +01:00
Vincent Thiery ba48068138 Reorganize the imports in hey.go to be more go-style compliant (#84) 2017-12-30 18:31:51 +01:00
mdakin b633e22873 On reused connections do not use connStart because GetConn is never called. Fixes issue #38 (#79) 2017-12-26 20:57:38 +01:00
mdakin c2c7035fae Actually set the hey user agent in the request. (#78) 2017-12-26 20:03:03 +01:00
mdakin 0e59549516 Add a duration parameter z. If specified hey sends requests until giv… (#75)
* 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.
2017-12-26 15:58:29 +01:00
mdakin aae813562e Minor shuffle. Throttle only if we are sending somthing, remove message. (#77) 2017-12-26 15:21:40 +01:00
Erwin van Eyk d6f8b187de Allow QPS to be less than 1 (#52) 2017-12-26 14:33:26 +01:00
mdakin 59fcb3294a Make result channel bounded by a reasonable value, not N. Incremental… (#74)
* 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
2017-12-21 13:57:30 +01:00
presbrey 32f75cf068 preset ContentLength in first http.Request (#48)
`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.
2017-12-19 18:13:35 +01:00
JBD ed20a4b681 travis: add go1.9 and remove the tip 2017-12-13 15:18:10 -08:00
Michael Biven 12f99f323d Remove references to -more option to enable tracing. (#57) 2017-11-25 09:55:52 -08:00
Jaana Burcu Dogan 6b333f056c add newline 2017-08-19 16:27:39 -07:00
Jaana Burcu Dogan 816cc9a681 more compact output 2017-08-19 16:24:46 -07:00
Jaana Burcu Dogan 55673919c2 various readability improvements 2017-08-19 16:06:26 -07:00
Jaana Burcu Dogan 7f5f712aea doc: use svg build status badge 2017-07-29 00:25:04 -07:00
Jaana Burcu Dogan 79ff6f9937 doc: reorg readme 2017-07-29 00:24:00 -07:00
Jaana Burcu Dogan d5dbb20e73 doc: add logo 2017-07-29 00:22:48 -07:00
Jaana Burcu Dogan 886125b9f2 enable trace all the times 2017-06-01 15:18:42 -07:00