Topic: Page complete time seems much larger than the sum of parts


I cannot figure out what the following line from the log means:

Completed 200 OK in 11422ms (Views: 2193.3ms | ActiveRecord: 236.0ms)

I can confirm that the page, indeed, loaded in approx. 11 secs.  However: this controller action is as simple as any: fetches objects from the DB and renders a view (albeit both complex).  What took for another 8 secs?

I've known that the real page load time is related to the generated HTML size (which is proportional to the fetched AR entries).

I experience it at many of my page loads -- especially the ones that "take forever to load".

Any help would be appreciated.


PS: I'm inexperienced at Rails/ruby profiling; I've tried with ruby-prof but results don't take me anywhere.

Last edited by boomerang (2011-06-14 15:35:40)