views:

669

answers:

3

Does anyone know the best lightweight Rails benchmarking tool?

I need to get performance statistics of the webserver and simulate authentication + page navigation per session. I've been trying to use httperf, but been encountering TamperingWithCookie exception in the application.

Ideally, I'd like to separate the application and database from the webserver benchmarking, but interested to see the results of the combination of these.

+2  A: 

You can try Tsung, a distributed load testing tool written in Erlang. It's a general tool but can be easily used with Rails applications. In case you need to simulate different user behavior scenarios as a kind of integration tests, you could also try Webrat.

Oleg Shaldybin
A: 

It's not the best way, but using a web stress tool like MS WAS has worked in the past to show simple benchmarks.

Kevin Kaske
A: 

ruby-prof works well either by you manually hitting your app with a browser, or it can benchmark against tests.

here's a great writeup on how to use it: http://cfis.savagexi.com/2007/07/18/making-rails-go-vroom

and here's where you can download it: http://rubyforge.org/projects/ruby-prof/

Terry