On Jan 20, 2006, at 13:31, Zed Shaw wrote:

> Mongrel is a web server I wrote this week that performs *much* better 
> than WEBrick (1350 vs 175 req/sec) and only has one small C extension.

Being a sucker for meaningless benchmarks I had to run this as well :))

[Mongrel]
% ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
% ruby simpletest.rb
% ab -n 10000 http://localhost:3000/test
Requests per second:    660.20 [#/sec] (mean)

(I get a terse "ERROR: Object" from time to time)

[Webrick]
% ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
% ruby webrick_compare.rb >& /dev/null
% ab -n 10000 http://localhost:4000/test
Requests per second:    37.90 [#/sec] (mean)

Here is something in python:

[Cherrypy][1]
% python -V
Python 2.4.2
% python tut01_helloworld.py
% ab -n 10000 http://localhost:8080/
Requests per second:    164.92 [#/sec] (mean)

And a bit of Lua [2] to round it up:

[LuaWeb][3]
% lua -v
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
% lua Test.lua
% ab -n 10000 http://localhost:1080/hello
Requests per second:    948.32 [#/sec] (mean)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


[1] http://www.cherrypy.org/
[2] http://www.lua.org/about.html
[3] http://dev.alt.textdrive.com/browser/LW/