I'm trying out rails 3 and I'm looking at the performance statistics
given by WEBrick.

It says many of my database operations are taking 2ms or 7ms... but
the view is taking 40ms. People often say that the database is the
bottleneck in applications (which it most certainly can be, and often
is)... but isn't the rendering of ERB a little show here? My test
pages really aren't that complicated... 1 partial... 1 layout... etc.
The project only has 5 model classes. I am only iterating through a
list of a model once. There are a few link_to() calls, but that's it.
It's really very simple.

Does this have something to do with being trying rails on Windows
maybe?

Could it be RubyMine? (I guess I should run WEBrick outside of
Rubymine to see if it affects anything later).

WEBbrick seems to add another 10ms overhead on top of all of this in
most of my pages as well. It does seem weird for thinks to be taking
60-70ms per page. That does seem a little slow for pages so simple.

Comments?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to