Re: [rspec-users] Performance tests using Rspec

2011-01-27 Thread David Chelimsky
On Jan 26, 2011, at 4:06 AM, Josep M. Bach wrote: > A while ago, I was looking at Minitest's benchmarking capabilities (contained > in a single file here) and I thought it would be great to have an equivalent > in RSpec. They have methods to assert type of performance (linear, > exponential...)

Re: [rspec-users] Performance tests using Rspec

2011-01-27 Thread Josep M. Bach
A while ago, I was looking at Minitest's benchmarking capabilities (contained in a single file here) and I thought it would be great to have an equivalent in RSpec. They have methods to assert type of performance (lin

Re: [rspec-users] Performance tests using Rspec

2011-01-17 Thread David Chelimsky
On Jan 16, 2011, at 8:29 PM, Evan wrote: > 1) Know of any guides to writing performance tests using Rspec? There's nothing built in as of yet, but you can do this pretty easily: require 'benchmark' RSpec::Matchers.define :take_less_than do |n| chain :seconds do; end match do |block|