If you're running Windows, press Windows key + R and enter
cmd
. Confirm it with a click on the OK button.Enter
C:\BitNami\wampstack-5.4.10-0\apache2\bin\ab.exe -c 5 -n 100 http://localhost/
and press Enter to confirm the command. The parameter–c
sets the number of concurrent requests to5
and–n
sets the number of requests to100
. After a few seconds, you should see an output with lots of information—most people care aboutRequests per second
.
If ab
was installed and able to analyze your site, you should see an output like this:
This is ApacheBench, Version 2.3 <$Revision: 1373084 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient).....done Server Software: Apache Server Hostname: localhost Server Port: 80 Document Path: / Document Length: 5870 bytes...