Closed bsolomon1124 closed 3 years ago
In readme it explained,
-z Duration of application to send requests. When duration is reached,
application stops and exits. If duration is specified, n is ignored.
So your requests will be ignored due to given specified duration parameter.
Similar to issue: https://github.com/rakyll/hey/issues/197
What if you remove -z 30s
and execute it again?
Yep, that's what I was missing. Thanks @namidairo777 !
$ hey -n 5 -c 1 -t 9 http://127.0.0.1:8000/
...
[200] 5 responses
I'm using
hey
installed via homebrew.Using
-n 5 -c 2
sends 870 requests.My naive assumption after seeing the help string and
Work.N
("N is the total number of requests to make") is that thishey
invocation would send a total of 5 requests.Clearly I am misunderstanding
-n
. If it's not the number of requests, what is it?Brew info: