# Benchmarking Rails unit tests?

**URL:** <https://www.ruby-forum.com/t/benchmarking-rails-unit-tests/146925>\
**Category:** Rails\
**Created:** [August 26, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/benchmarking-rails-unit-tests/146925 "2008-08-26T21:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://www.ruby-forum.com/u/jeff)\
**Post date:** [August 26, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/benchmarking-rails-unit-tests/146925/1 "2008-08-26T21:25:35Z")

</div>

I’m having trouble for some reason finding information about the  
scripts in script/performance (benchmarker, profiler, request).

I know how to use the Ruby Benchmark class to do isolated  
measurements, but does Rails have a facility for running all of my  
tests (unit, or functional, or all), and letting me know what are the  
(say) top 10 methods that are taking the longest?

I don’t want to optimize everything. I’m figuring there are just a  
few bottlenecks that are slowing everything down.

Any suggestions?

Thanks!  
Jeff
