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
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.