WebServer Benchmark - Gatling VS Nginx

Gatling is a high performance web server, developed by this guy. This webserver in my opinion is very light, but very fast. I benchmark against nginx and it runs faster.

I benchmark using Apache Benchmark, at 10 concurrency level. Here's the result:

Gatling

Server SoftwareGatling/0.11
Server Hostname127.0.0.1
Server Port10080
Document Path/index.html
Document Length151 bytes
Concurrency Level10
Time taken for tests2.057 seconds
Complete requests20000
Failed requests0
Write errors0
Total transferred7380000 bytes
HTML transferred3020000 bytes
Requests per second9722.32 [#/sec] (mean)
Time per request1.029 [ms] (mean)
Time per request0.103 [ms] (mean, across all concurrent requests)
Transfer rate3503.45 [Kbytes/sec] received

Here's the Nginx part

Server Softwarenginx/0.6.32
Server Hostname127.0.0.1
Server Port80
Document Path/index.html
Document Length151 bytes
Concurrency Level10
Time taken for tests3.938 seconds
Complete requests20000
Failed requests0
Write errors0
Total transferred7240000 bytes
HTML transferred3020000 bytes
Requests per second5078.16 [#/sec] (mean)
Time per request1.969 [ms] (mean)
Time per request0.197 [ms] (mean, across all concurrent requests)
Transfer rate1795.21 [Kbytes/sec] received

Gatling reach 9722.32 request per second while Nginx only reach 5078.16. I've only benchmark the static pages only, since I still cannot figure out how to Run CGI on Gatling. And Gatling send less HTTP header than Nginx.

Here's gatling response header for a simple GET request

GET / HTTP/1.0

HTTP/1.1 200 Here you go
Content-Type: text/html
Connection: close
Server: Gatling/0.11
Content-Length: 10056

..content

And here's the nginx part

GET / HTTP/1.0

HTTP/1.1 200 OK
Server: nginx/0.6.32
Date: Fri, 04 Sep 2009 19:58:17 GMT
Content-Type: text/html
Content-Length: 151
Last-Modified: Wed, 30 Aug 2006 10:39:17 GMT
Connection: close
Accept-Ranges: bytes

I believe this server will add more option besides Nginx and Lighttpd for replacing Apache to serve website. And the small size will be perfect for embedded web server that run on device such as router or switch.

6 Comments | [Put comments]

  1. gravatar ale - September 6, 2009

    Wew,
    Ga mudheng,.

  2. gravatar ferdhie - September 6, 2009

    hahaha, cuman bahas soal webserver2 selain apache

  3. gravatar dolly aswin harahap - September 7, 2009

    Try this one
    http://www.cherokee-project.com

  4. gravatar sumodirjo - September 13, 2009

    Makasih pak infonya, ada aja web server baru. padahal lighty sama nginx belum mudheng

  5. gravatar anton - September 21, 2009

    Coba LiteSpeed :D

  6. gravatar mizannege - February 7, 2012

    Hi, This just came across my desk and I had to pass it on to you ASAP…
    Internet multi-millionaire Mack Michaels has a few new positions available right now…
    If accepted you can easily rake in $11, 917 per month starting from scratch.
    ==> http://www.maverickmoneymaking.info/maverick.html
    Once you’re accepted just follow the training Mack gives you. It’s really quite simple…
    Learn how Mack went from not being able to afford Christmas gifts to a millionaire lifestyle and how you can too!
    BUT…
    Due to the extremely high level of Hands-On time Mack spends with every new member he has to limit the number of positions that are open.
    Right now there are only 2 available in your area. If you’re interested you should move quickly.
    ==> http://www.maverickmoneymaking.info/maverick.html
    Your Friend, – Mike

Leave a Reply