> Has anyone done any profiling on their Rails app tests to work out
> where the time goes? I've always wondered how much of the time testing
> Rails apps is wasted on the database syncing disk writes, etc. If you
> threw your test database on a ramdisk, how much performance would you
> gain?
>
> - Pete

I've tried using ruby-prof with rspec a number of times - both to test
spec speed, and to assert things about app speed as well and it was
very painful.

Because of the way rspec builds up it's sets of examples and
everything you end up with a very muddy call tree profile it's really
tricky to get anything meaningful out of it.

My next avenue of exploration (when i get some free time) will to open
up rspec and add hooks to start stop ruby-prof at will, so it will
only show me my own example code rather than all that rspec guff.

-jb

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to