0

描述我的 RoR 网站http://www.karmabee.net的最佳方式是什么?

我正在使用非常慢的 fb_graph GEM,尤其是在检索朋友列表时。发送 SMS 文本时,Twilio 也很慢。

所以我不确定我是否可以优化这些东西。无论如何,我需要先弄清楚如何分析网站。

有任何想法吗?

4

2 回答 2

4

NewRelic: http://newrelic.com/ It looks into your rails app and tells you how much time each request spends on db queries, page rendering etc. From there you can drilldown to the bottleneck and work on optimizations.

http://www.webpagetest.org/ is handy for general page speed testing.

Chrome comes with the Audits tool(right click, inspect element -> Audits tab) which you can test any webpage's webpage performance and network utilization. Firefox has an addon YSlow does something similar.

Not sure how interaction with twilio can be profiled...

于 2012-07-12T17:52:18.010 回答
2

我真的很喜欢请求日志分析器,只需执行以下操作:

gem install request-log-analyzer

然后在您的生产盒上,您可以执行以下操作:

request-log-analyzer log/production.log

它会告诉你各种各样的事情,比如哪些控制器和动作很慢等等,试试看吧!

于 2012-07-12T17:57:10.990 回答