From: Thomas Fini Hansen Date: 2004-08-20T03:58:40+09:00 Subject: Re: [RAILS] way too slow... On Fri, Aug 20, 2004 at 02:21:14AM +0900, David Heinemeier Hansson wrote: > >I'm not necessarily looking for the best benchmarks, but I would > >expect better than 1 req/sec. > > Are you running in CGI mode? If so, 1 req/sec is similar to what I'm > getting. Rails does a ton of fancy, smancy stuff at startup to get all > the magic poofing. > > In a production environment, though, this initialization cost is never > seen by the users as it only happens once when a new Apache or FCGI > process starts up. > > So I wouldn't get my hopes up for that to improve. I find 1 req/sec > perfectly acceptable for developing on my Powerbook offline. I > developed the new release of Basecamp like that. > > But even if it is a problem for you, it's pretty easy to switch between > FCGI and CGI. So just use CGI when you're changing stuff all the time > (like working on a single page), then use FCGI (or mod_ruby) when you > need to test a bunch of pages. Random thought: auto-reload.rb from the mod_ruby distribution. Does that work with Rails, or does the two not like each other? I should get some Rails up and running soon.. -- Thomas beast@system-tnt.dk