From: David Heinemeier Hansson Date: 2004-08-19T06:07:34+09:00 Subject: Re: [RAILS] way too slow... >> That makes it 10 times slower than static. Obviously, it will be >> slower, but is this reasonable? Any ideas on how to make this >> better? > > What are you doing on your test page? If I don't need to have sessions > and just say "hello world" in an action, I'm able to get 150 req/sec > on FCGI on my lowly Powerbook (4200 rpm drive). I might have been overstating myself there. I just ran a few quick tests and got something like this on a simple "hello world" through render_text: No logging, no sessions 98.51 Logging, no sessions 80.11 Logging, pstore/sessions 50.64 Anyway. Florian Weber is working on a benchmark suite for Rails now that will include a bunch of common use cases and measure them at different steps in the application. That'll give us a much easier tool for comparison and tweaking. Also, I've done pretty much zero performance tuning on the Action Pack. I'm *positive* that I'm doing a bunch of unnecessary and expensive calls that can be heavily tuned. When I spent some time tuning Active Record, the use cases I was working with improved by 400%. So basically: Chill. Rails will only get faster ;) -- David Heinemeier Hansson, http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.instiki.org/ -- A No-Step-Three Wiki in Ruby http://www.basecamphq.com/ -- Web-based Project Management http://www.loudthinking.com/ -- Broadcasting Brain http://www.nextangle.com/ -- Development & Consulting Services