rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.61k stars 1.17k forks source link

Controlling requests per second #299

Closed PhilipDeegan closed 1 year ago

PhilipDeegan commented 1 year ago

Hi there,

Thanks for the tool, I'm trying to see how to vary total requests per second but I seem to get > 1000 requests per second regardless of what I try

for instance, the following command gives me more than 1000 requests, when I would it expect it to give me 1 request.

hey -n 1 -c 1 -z 1s -cpus 1 http://localhost

Am I missing something?

PhilipDeegan commented 1 year ago

use -q $REQUESTS