[rspec-users] Profiling specs

Scott Taylor mailing_lists at railsnewbie.com
Tue Jul 15 20:06:23 EDT 2008

On Jul 15, 2008, at 9:50 AM, Jonathan Leighton wrote:

> On Tue, 2008-07-15 at 13:40 +0200, Piotr Wlodarek wrote:
>> Jonathan Leighton wrote:
>>> Is there any simple, easy way to profile the running of my specs?  
>>> It has
>>> recently starting being way slower and I want to know why :)
>> spec --format profile
> Thanks, but I was more thinking something that would allow me to run
> ruby-prof over the specs - it's not so much a problem that individual
> examples are too slow, but more that the specs have somehow become
> uniformly slower.
> I guess I could try and work out the revision at which it became a
> problem but if there was an easy way to profile it that would be
> better...

It sounds like a build server would help you out.  I'm sure you could  
also check out ever revision (or every 50 or 500 revisions) of your  
app, run the specs, and create some sort of graph to get some general  
ideas about when and where things have slowed down.


More information about the rspec-users mailing list