hey -z 30s -c 50 -m GET http://localhost:3000/

Category: Web App Development

hey -z 30s -c 50 -m GET http://localhost:3000/

Load test for a fixed duration with hey

Sends requests for 30 seconds with 50 workers, which is easier to reason about than a fixed request count. The -z flag sets the duration and -m overrides the HTTP method. Add -d to supply a request body for POST tests.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.