Benchmarking an Profiling of Rails apps

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 Ruby on Rails — Rails 2.0: It's done! and scroll down to the part about the new request profiler.

Hope this helps Jeff softiesonrails.com

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

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

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

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

Hi Thanks for reply back. Meanwhile I got this too

    Thanks again

Tom