This guide provides installation instructions for two load-testing tools: Apache Benchmark (ab
) and hey. These tools can be used to generate high HTTP request loads on a server or load balancer.
- Open Terminal and run:
brew install httpd
- Verify the installation:
ab -V
- Open PowerShell as Administrator.
- Run:
choco install apache-httpd -y
- Close and reopen PowerShell, then verify:
ab -V
- Download Apache HTTP Server from: https://www.apachelounge.com/download/
- Extract it to
C:\Apache24
(or another location). - Add the
bin
folder to the System Path:- Open System Properties → Environment Variables.
- Edit the
Path
variable under System variables. - Add:
C:\Apache24\bin
- Restart the terminal and verify:
ab -V
- Open Terminal and run:
brew install hey
- Verify the installation:
hey -v
- Open PowerShell as Administrator.
- Run:
choco install hey -y
- Verify the installation:
hey -v
- Download the latest Windows binary from: https://github.com/rakyll/hey/releases
- Extract the
.exe
file toC:\hey\
. - Add
C:\hey\
to your System Path:- Open System Properties → Environment Variables.
- Edit the
Path
variable under System variables. - Add:
C:\hey\
- Restart the terminal and verify:
hey -v