This is a mirror of official site: http://jasper-net.blogspot.com/

[Benchmark] Apache 2, Cherokee, LigHTTPd, Nginx Benchmarked with Static Files, PHP5 Script and WordPress

| Sunday, September 5, 2010
Here is a three fold comparison between the four major webservers: Apache 2, Cherokee, LigHTTPd and Nginx. We will compare standard static file service capabilities of each of the servers. Next, we will compare their individual performance with PHP (mod_php in-case of Apache 2 and PHP5-FPM in-case of others) and finally with that of WordPress.

Benchmark Hardware:

Processor: Intel Core2Quad Q6600
Memory: 4 GB DDR2 800 MHz ECC
Storage: 500 GB 7200 RPM SATA Hard Drive
Benchmark Software and Configuration:

OS: Ubuntu 10.04 LTS AMD64
Benchmarking Tool: ApacheBench, Version 2.3
Apache 2/PHP Configuration (Running with mod_php): phpinfo.apache2
Cherokee 1.0.1/PHP5-FPM Configuration: phpinfo.cherokee
LigHTTPd/PHP5-FPM Configuration: phpinfo.lighttpd
Nginx/PHP5-FPM Configuration: phpinfo.nginx
No PHP Caching systems were installed in order to test the servers in bare-bones.
Benchmark Process:

All the above were installed on the same test system using standard Ubuntu Packages or stable PPA packages wherever necessary. Each of these servers were tested for finding three different results. The first one was a static file test. In this test, two PNG type images of dimensions 400×400 and 800×800 pixels were taken. Each server was made to benchmark on each of the two images and for each image two iterations per server using ApacheBench were taken. The output Requests Per Second was averaged over all iterations of each server. While running tests on each server all the others were gracefully brought down. Next was the PHP5 Script test. Here a simple php script with a for loop of 100 iterations of word “Testing” was used to benchmark with two iterations per server and the results were averaged. Finally, we took the WordPress test. Here the same WordPress installation was accessed by each of the servers. WordPress permalinks were disabled. The request WordPress post had one post and 5 nested comments to test for load. Again two iterations for the same were taken per server and the data was averaged. The Static File Test and PHP Script Tests were taken with 50000 requests at a concurrency level of 100. The WordPress Tests were taken with 3000 requests at a concurrency level of 5.

Read more: TechTatVa

Posted via email from .NET Info

0 comments: