[Mongrel] [noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs

PA petite.abeille at gmail.com
Thu Nov 8 15:11:30 EST 2007


On Nov 07, 2007, at 22:49, Evan Weaver wrote:

> Simpletest should probably be removed or at least audited; I don't
> think anyone has looked at it in a while.

Well, it's always nice to have a little 'Hello World' example that one 
can run out-of-the-box, with minimum fuss.

Then one can run some rather meaningless micro benchmarks against it :))


[Ruby/WEBrick 1.3.1]

% ruby webrick_compare.rb
% ab -n 1000 -k http://localhost:4000/test
Requests per second:    4.98 [#/sec] (mean)


[Ruby/Mongrel 1.1]

% ruby simpletest.rb 127.0.0.1 4000 .
% ab -n 1000 -k http://localhost:4000/dumb
Requests per second:    234.80 [#/sec] (mean)


[Ruby/ServerSide 0.4.3][1]

% ruby serverside start
% ab -n 1000 -k http://localhost:8000/serverside.pid
Requests per second:    402.09 [#/sec] (mean)


[Python/WebPy 0.22][2]

% python code.py
% ab -n 1000 -k http://localhost:8080/
Requests per second:    313.87 [#/sec] (mean)


[Lua/HTTP/TCPServer][3][4]

% lua TestServer.lua
% ab -n 1000 -k http://localhost:1080/hello
Requests per second:    682.13 [#/sec] (mean)


[Lua/HTTP/tcpserver][5]


% ab -n 1000 -k http://localhost:1080/hello
% tcpserver -oDHlR 0 1080 lua Hello.lua
Requests per second:    1107.42 [#/sec] (mean)



% ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [powerpc-darwin7.9.0]

% python -V
Python 2.5.1

% lua -v
Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio


[1] http://serverside.rubyforge.org/
[2] http://webpy.org/
[3] http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua
[4] http://dev.alt.textdrive.com/browser/HTTP/TCPServer.lua
[5] http://cr.yp.to/ucspi-tcp/tcpserver.html



More information about the Mongrel-users mailing list