Benchmarking an Profiling of Rails apps

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.

Shamelessly bumping my question…
So noone can help me?

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

Thank you, I will look at that.

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

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.

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:

http://github.com/andyjeffries/rails-analysis-tools (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

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

Hi
Thanks for reply back. Meanwhile I got this too
http://www.leonardoborges.com/writings/2008/11/20/rails-performance-scripts-profiler-benchmarker/
Thanks again

Tom

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs