Webserver Performance Benchmarks

You can benchmark Apache, IIS and other web server with apache benchmarking tool called ab. Recently I was asked to performance benchmarks for different web servers.

It is true that benchmarking a web server is not an easy task. From how to benchmark a web server.

What is important is the average time it will take when you have a maximum number of users on your site simultaneously. Another important thing is how much more time it will take when there are 2 times more users: a server that take 2 times more for 2 times more users is better than another that take 4 times more for the same amount of users."

Here are few tips to carry out procedure along with an example:
Apache Benchmark Procedures

* You need to use same hardware configuration and kernel (OS) for all tests
* You need to use same network configuration. For example, use 100Mbps port for all tests
* First record server load using top or uptime command
* Take at least 3-5 readings and use the best result
* After each test reboot the server and carry out test on next configuration (web server)
* Again record server load using top or uptime command
* Carry on test using static html/php files and dynamic pages
* It also important to carry out test using the Non-KeepAlive and KeepAlive (the Keep-Alive extension to provide long-lived HTTP sessions, which allow multiple requests to be sent over the same TCP connection) features
* Also don't forget to carry out test using fast-cgi and/or perl tests

How do I carry out Web server Static KeepAlive test?
$ ab -k -n 1000 -c 5 http://202.54.200.1/snkpage.html

3 comments:

Dream Fusion said...

Thank you for this article. This is really good one for apache performance benchmarks.

Regards,
Milan Gothe

Dream Fusion said...

Thank you. This helped me a lot. Please carry on posting.

Unangwa said...

That isn't much of a load to put on a server. I'm not sure how much you can learn from this. I use ab and do 1000 concurrent connections and 1000000 page views. Then you can see when a server stops working.

Our company servers can handle more than 5000 concurrent connections and 1000000 page views in about four minutes.

We specialize in getting your site ready for your big day - should it ever come.