deliak
January 14, 2008, 3:49pm
1
Right now, in order to optimize my rails app performances, I’m
benchmarking each method by explicitly doing a Benchmark.measure of the
method.
Since I suspect thats not the fastest and best way to do it, could you
suggest me how to benchmark my app?
Are there any tools I should be aware of?
Thank you in advance.
deliak
January 14, 2008, 6:05pm
2
Shamelessly bumping my question…
So noone can help me?
deliak
January 14, 2008, 7:22pm
3
On Jan 14, 8:49 am, Emanuele R. [email protected]
wrote:
Posted viahttp://www.ruby-forum.com/.
Have you tried http-perf? I’ve heard good things about this
screencast (all the peepcode screencasts are helpful, imo):
http://peepcode.com/products/benchmarking-with-httperf
Also, I know that Rails 2.0 there’s a new request profiler. See
http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done and scroll
down to the part about the new request profiler.
Hope this helps
Jeff
deliak
January 15, 2008, 9:40am
4
Thank you, I will look at that.
deliak
February 24, 2010, 11:59am
5
Hi
I am asking related to this. Is for benchmarking and profiling
newrelic is used? In other words can I use newrelic to do these two
jobs?
Thanks
Tom
deliak
January 14, 2008, 8:28pm
6
You might want to look at:
http://blog.segment7.net/articles/2007/01/22/test-profiling-by-lines-logged
There are some tools for profiling Rails apps, and this is a good
place to start.
deliak
February 24, 2010, 12:24pm
7
Personally I’ve had a lot more success using DTrace to profile Rails
apps.
You can even attach to an existing process, so you can trace Passenger
servers. You need to be running Mac OS X (Solaris may work too, but I
don’t
know) but most Rails devs do so…
You can find an example script on here:
GitHub - andyjeffries/rails-analysis-tools: Tools for analysing Rails and Apache logs for performance (look at the
Passenger
DTrace script section of the readme)
Cheers,
Andy
–
Andy J.
http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery
Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS
Company number: 5452840
deliak
February 24, 2010, 12:52pm
8
Hi Andy
Thanks for your reply. I am totally a beginner So I would like to know
if all these benchmarking and profiling we can get from using newrelic
rpm?
Tom
deliak
February 25, 2010, 12:18pm
9
Hi
Thanks for reply back. Meanwhile I got this too
Thanks again
Tom
deliak
February 24, 2010, 1:33pm
10
You can certainly get some information from newrelic (slowest
controllers,
db queries, etc) - I thought you were after more advanced detail.
You can also do script/performance/profiler or
script/performance/benchmarker (you might want to google script
performance
rails).
Cheers,
Andy
–
Andy J.
http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery
Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS
Company number: 5452840