Search code examples
rubyruby-on-rails-3pagespeed

Measuring of loading pages of Rails app


I wonder about the best approach for measuring the speed of loading pages of an app. I would like to see, how much time took the loading pages of the app because of improving SQL queries etc. and then would be good to display these measured values to the graph.

How do you solve this problematic? My idea is put on the start of the page and to its end timer and every value save to the database, but I am not sure if this is the good idea.


Solution

  • I use very helpful gem QueryReviewer for this purpose. It can analyze every SQL query, give some useful information about it. And it displays this interactive summary directly on the page.