# Benchmarks

**URL:** <https://www.ruby-forum.com/t/benchmarks/212628>\
**Category:** NGINX\
**Created:** [October 8, 2011, 12:50pm UTC](https://www.ruby-forum.com/t/benchmarks/212628 "2011-10-08T12:50:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [October 8, 2011, 12:50pm UTC](https://www.ruby-forum.com/t/benchmarks/212628/1 "2011-10-08T12:50:09Z")

</div>

Hi,

Some more benchmarks of Nginx compared to Apache, Cherokee, Lighttpd and  
G-WAN. Non keep-alive so far. If you have any pointers about how to  
improve further, please let me know.

> **[Benchmarking the benchmarks (part 2)](https://lonewolfer.wordpress.com/2011/10/08/benchmarking-the-benchmarks-part-2/)**
>
> This is a continuation of the previous post Scaling the benchmark tool We were able to improve on the original “ab” benchmark quite  a bit especially for large files but as the authors …

Regards,  
Fredrik

---

<div class="post-metadata">

**Author:** ![Fredrik\_Widlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@Fredrik\_Widlund](https://www.ruby-forum.com/u/Fredrik_Widlund)\
**Post date:** [October 9, 2011, 8:31am UTC](https://www.ruby-forum.com/t/benchmarks/212628/2 "2011-10-09T08:31:41Z")

</div>

thanks for sharing, trying installing weighttp myself but fails to  
install on centos 6.0 64bit

[root@centos6 weighttp-master]# yum list libevent\*  
Loaded plugins: fastestmirror, refresh-packagekit  
Loading mirror speeds from cached hostfile

- base: [centos.vr-zone.com](http://centos.vr-zone.com)
- extras: [centos.vr-zone.com](http://centos.vr-zone.com)
- rpmforge: apt.sw.be
- updates: [centos.vr-zone.com](http://centos.vr-zone.com)  
Installed Packages  
libevent.x86\_64 1.4.13-1.el6  
@anaconda-CentOS-201106060106.x86\_64/6.0  
libevent-devel.x86\_64 1.4.13-1.el6  
@base

[root@centos6 weighttp-master]# python -V  
Python 2.7.2

[root@centos6 weighttp-master]# ./waf configure -vv  
Checking for program gcc,cc : ok /usr/bin/gcc  
Checking for program cpp : ok /usr/bin/cpp  
Checking for program ar : ok /usr/bin/ar  
Checking for program ranlib : ok /usr/bin/ranlib  
Checking for gcc : ok  
Checking for library ev : 16:29:51 runner system  
command → [‘/usr/bin/gcc’, ‘-std=gnu99’, ‘-Wall’, ‘-Wshadow’, ‘-W’,  
‘-pedantic’, ‘-g’, ‘-g2’, ‘-O2’, ‘-Wmissing-declarations’,  
‘-Wdeclaration-after-statement’, ‘-Wno-pointer-sign’, ‘-Wcast-align’,  
‘-Winline’, ‘-Wsign-compare’, ‘-Wnested-externs’, ‘-Wpointer-arith’,  
‘-Wbad-function-cast’, ‘-Wmissing-prototypes’, ‘-fPIC’,  
‘-fno-strict-aliasing’, ‘…/test.c’, ‘-c’, ‘-o’, ‘default/test\_1.o’]  
16:29:51 runner system command → [‘/usr/bin/gcc’, ‘default/test\_1.o’,  
‘-o’,  
‘/usr/local/src/weighttp-master/build/.conf\_check\_0/testbuild/default/testprog’,  
‘-Wl,-Bdynamic’, ‘-lev’]  
not found  
error: Traceback (most recent call last):  
File  
“/usr/local/src/weighttp-master/.waf-1.5.9-d1e0349fc8937631a656fb8ea7e99063/wafadmin/Tools/config\_c.py”,  
line 348, in run\_c\_code  
bld.compile()  
File  
“/usr/local/src/weighttp-master/.waf-1.5.9-d1e0349fc8937631a656fb8ea7e99063/wafadmin/Build.py”,  
line 169, in compile  
raise BuildError(self,self.task\_manager.tasks\_done)  
BuildError: Build failed  
 → task failed (err #1):  
{task: cc\_link test\_1.o → testprog}

File “./waf”, line 148, in   
Scripting.prepare(t, cwd, VERSION, wafdir)  
File  
“/usr/local/src/weighttp-master/.waf-1.5.9-d1e0349fc8937631a656fb8ea7e99063/wafadmin/Scripting.py”,  
line 104, in prepare  
error(str(e))

any ideas or tips ?

Posted at Nginx Forum:

> **[Re: Benchmarks](https://forum.nginx.org/read.php?2,216392,216413#msg-216413)**
>
> Hi, Some more benchmarks of Nginx compared to Apache, Cherokee, Lighttpd and G-WAN. Non keep-alive so far. If you have any pointers about how to improve further, please let me know....

---

<div class="post-metadata">

**Author:** ![Fredrik\_Widlund](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@Fredrik\_Widlund](https://www.ruby-forum.com/u/Fredrik_Widlund)\
**Post date:** [October 9, 2011, 8:44am UTC](https://www.ruby-forum.com/t/benchmarks/212628/3 "2011-10-09T08:44:39Z")

</div>

On Sat, Oct 08, 2011 at 12:48:25PM +0200, Fredrik Widlund wrote:

> Hi,
> 
> Some more benchmarks of Nginx compared to Apache, Cherokee, Lighttpd and G-WAN.  
> Non keep-alive so far. If you have any pointers about how to improve further,  
> please let me know.
> 
> [Benchmarking the benchmarks (part 2) | lonewolfer](http://lonewolfer.wordpress.com/2011/10/08/benchmarking-the-benchmarks-part-2/)

The worker\_cpu\_affinity is broken.

Try to set

events {  
accept\_mutex off;  
…  
}

–  
Igor S.
