How to test a website load test using ApacheBench (linux command ab) ?
The apache benchmark tool is very basic, and while it will give you a solid idea of some performance.
-c: ("Concurrency"). Indicates how many clients (people/users) will be hitting the site at the same time. While ab runs, there will be -c clients hitting the site.
-n: Indicates how many requests are going to be made. This just decides the length of the benchmark.
-k: This does the "KeepAlive" funcionality browsers do by nature.
A high -n value with a -c value that your server can support is a good idea to ensure that things don't break under sustained stress: it's not the same to support stress for 5 seconds than for 5 hours.
ab -k -c 350 -n 20000 example.com
ab -c 10 -n 100 http://example.com/my_page