HTTP load generator, ApacheBench (ab) replacement
hey is a tiny program that sends some load to a web application.
hey was originally called boom and was influenced from Tarek Ziade's tool at tarekziade/boom. Using the same name was a mistake as it resulted in cases where binary name conflicts created confusion. To preserve the name for its original owner, we renamed this project to hey.
macOS:
brew install hey.hey runs provided number of requests in the provided concurrency level and prints stats.
It also supports HTTP2 endpoints.
…
Make requests with default settings:
hey https://google.com
Make 1000 requests with 100 concurrent workers:
hey -n 1000 -c 100 https://google.com
Run load test for 30 seconds:
hey -z 30s https://google.com
Make POST request with custom body:
hey \
-m POST \
-d "param1=value1¶m2=value2" \
https://google.com
Add custom headers:
hey \
-H "Accept: application/json" \
-H "Authorization: Bearer token" \
https://google.com
Test with HTTP/2:
hey -h2 https://google.com
Rate limit to 10 queries per second per worker:
hey -q 10 -c 5 -z 30s https://google.com