Commit Graph

269 Commits

Author SHA1 Message Date
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
Jaana Burcu Dogan
2969c6acaf handle interrupt outside of the library, remove progress report. 2017-06-01 15:09:28 -07:00
Jaana Burcu Dogan
2e58a484f1 code reorg 2017-06-01 14:45:41 -07:00
Mark Adams
12b2d74b9f Add -disableRedirects flag to disable following of redirects (#41) 2017-05-31 10:33:00 -07:00
Chris Broadfoot
fb2cc10326 requester: support custom output writer (#47) 2017-03-21 11:14:49 -07:00
Jaana Burcu Dogan
13e2560879 print report even if all requests resulted in error 2016-11-06 13:18:01 -08:00
Jaana Burcu Dogan
53cffab544 simplify finalization of the report 2016-11-06 13:17:28 -08:00
Jaana Burcu Dogan
74c4ca31d8 fix printing race between the report and the progress 2016-10-24 11:13:15 -07:00
Jaana Burcu Dogan
13f5f84458 set body only if there is body 2016-10-21 18:31:25 -07:00
Jaana Burcu Dogan
76eaef9ac2 Merge branch 'pr/24' 2016-10-21 17:58:49 -07:00
Jaana Burcu Dogan
ed439ee437 Simplify progress handling. 2016-10-21 17:58:13 -07:00
Ronak Jain
4c2f90ea66 fixed progress channel 2016-10-22 01:09:46 +05:30
Jaana Burcu Dogan
ee5c001f9a Reorg help text 2016-10-20 17:20:44 -07:00
Jaana Burcu Dogan
6f018b914f Merge branch 'master' of github.com:rakyll/hey 2016-10-19 15:11:33 -07:00
Jaana Burcu Dogan
07ebe6726d add flag -D to set body from file 2016-10-19 15:11:27 -07:00
Jaana Burcu Dogan
edbda8a292 Merge pull request #22 from JRonak/trace
added detailed report and csv support for httptrace fields
2016-10-19 14:54:42 -07:00
Ronak Jain
e6dda1919b added detailed report and csv for httptrace fields 2016-10-16 16:50:35 +05:30
Ronak Jain
e4495241af removed progressCounter 2016-10-16 16:20:01 +05:30
Ronak Jain
0bbf003875 Merge branch 'master' into progressBar 2016-10-16 15:56:53 +05:30
Jaana Burcu Dogan
c1c26877e4 clarify the timeout flag 2016-10-15 14:53:33 -07:00
Jaana Burcu Dogan
94a7335917 fix the broken build 2016-10-15 14:48:16 -07:00
Jaana Burcu Dogan
4fb8d92423 remove obsolete TODO 2016-10-15 14:40:15 -07:00
Jaana Burcu Dogan
8941a817cf consistent error messages 2016-10-15 14:37:52 -07:00
Jaana Burcu Dogan
9cf60f73cb body should be a byte slice 2016-10-15 14:36:02 -07:00
Jaana Burcu Dogan
8b85329cff minor readability improvement 2016-10-15 14:33:43 -07:00
Jaana Burcu Dogan
94f800c0d0 Fix printing of HTTP Trace 2016-10-15 14:31:31 -07:00
Jaana Burcu Dogan
28260456e2 Merge pull request #20 from verygoodsoftwarenotvirus/master
Rename inconsistent initialisms
2016-10-15 14:26:33 -07:00
Jaana Burcu Dogan
87fcf9554e Merge pull request #28 from htlcnn/master
fix typo
2016-10-15 14:18:12 -07:00
Long
8ebae6230e fix typo 2016-10-09 23:10:23 +07:00
Jaana-Burcu Dogan
3b84d045f1 Merge pull request #21 from geneh/master
Update README and usage string.
2016-09-27 18:59:43 -07:00
Ronak Jain
7210fc4e61 fixed progress bar counter 2016-09-26 20:45:26 +05:30
Ronak Jain
baf4998f99 implemented progress bar 2016-09-21 00:13:01 +05:30
Gene Hazan
1675796752 Update README and usage string. 2016-09-16 13:21:28 -07:00
Jeffrey D
299f193948 Change every reference to QPS
Missed these because of some environment issues.
2016-09-15 22:42:11 -05:00