De Wiki inetshell
Saltar a: navegación, buscar

ab -n 1000 -c 10 -k -H "Accept-Encoding: gzip, deflate"

-n 1000 is the number of requests to make.

-c 10 tells AB to do 10 requests at a time, instead of 1 request at a time, to better simulate concurrent visitors (vs. sequential visitors).

-k sends the KeepAlive header, which asks the web server to not shut down the connection after each request is done, but to instead keep reusing it.