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

**URL:** <https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544>\
**Category:** Mongrel\
**Created:** [November 7, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544 "2007-11-07T20:37:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PAPAPA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@PAPAPA](https://www.ruby-forum.com/u/PAPAPA)\
**Post date:** [November 7, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544/1 "2007-11-07T20:37:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![PAPAPA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@PAPAPA](https://www.ruby-forum.com/u/PAPAPA)\
**Post date:** [November 7, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544/2 "2007-11-07T21:11:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![PAPAPA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@PAPAPA](https://www.ruby-forum.com/u/PAPAPA)\
**Post date:** [November 7, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544/3 "2007-11-07T23:00:32Z")

</div>

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

Evan

---

<div class="post-metadata">

**Author:** ![PAPAPA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@PAPAPA](https://www.ruby-forum.com/u/PAPAPA)\
**Post date:** [November 8, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544/4 "2007-11-08T21:12:09Z")

</div>

On Nov 07, 2007, at 22:49, Evan W. 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](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](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](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/](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](http://localhost:1080/hello)  
Requests per second: 682.13 [#/sec] (mean)

[Lua/HTTP/tcpserver][5]

% ab -n 1000 -k [http://localhost:1080/hello](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](http://Lua.org), PUC-Rio

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

---

<div class="post-metadata">

**Author:** ![PAPAPA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c4cdca/32.png) [@PAPAPA](https://www.ruby-forum.com/u/PAPAPA)\
**Post date:** [November 9, 2007, 3:43am UTC](https://www.ruby-forum.com/t/noob-simpletest-rb-mongrel-1-1-ruby-1-8-4-mac-os-x-10-3-9-hangs/119544/5 "2007-11-09T03:43:38Z")

</div>

PA, if you’re going to do that be sure to include evented\_mongrel from  
swiftiply in the mix.  
$ EVENT=1 mongrel\_rails -p 3000 …

~Wayne
