PA
2007-Nov-07 19:37 UTC
[Mongrel] [noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs
Hello, I''m trying to run the latest/greatest mongrel version: % sudo gem install mongrel ... Successfully installed mongrel-1.1 % gem list mongrel mongrel (1.1) % ruby -v ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0] % uname -a Darwin NewYork.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc Running examples/webrick_compare.rb works fine: % ruby examples/webrick_compare.rb [2007-11-07 20:27:34] INFO WEBrick 1.3.1 [2007-11-07 20:27:34] INFO ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0] [2007-11-07 20:27:34] INFO WEBrick::HTTPServer#start: pid=919 port=4000 But running examples/simpletest.rb hangs: % ruby examples/simpletest.rb The application sit there, not going any further than the "require ''mongrel''" statement. Any thoughts one what I could be missing? Thanks in advance. Cheers, PA.
PA
2007-Nov-07 20:11 UTC
[Mongrel] [noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs
On Nov 07, 2007, at 20:37, PA wrote:> But running examples/simpletest.rb hangs: > > % ruby examples/simpletest.rb > > The application sit there, not going any further than the "require > ''mongrel''" statement. > > Any thoughts one what I could be missing?Never mind... after upgrading to ruby 1.8.6 and, more importantly, gem 0.9.4 everything works as advertised. Sorry for the noise. Cheers, PA.
Evan Weaver
2007-Nov-07 21:49 UTC
[Mongrel] [noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs
Simpletest should probably be removed or at least audited; I don''t think anyone has looked at it in a while. Evan On Nov 7, 2007 3:11 PM, PA <petite.abeille at gmail.com> wrote:> > On Nov 07, 2007, at 20:37, PA wrote: > > > But running examples/simpletest.rb hangs: > > > > % ruby examples/simpletest.rb > > > > The application sit there, not going any further than the "require > > ''mongrel''" statement. > > > > Any thoughts one what I could be missing? > > Never mind... after upgrading to ruby 1.8.6 and, more importantly, gem > 0.9.4 everything works as advertised. > > Sorry for the noise. > > > Cheers, > > PA. > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
PA
2007-Nov-08 20:11 UTC
[Mongrel] [noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs
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