Skip to content

dsturnbull/should_be_faster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$ gem install should_be_faster

describe Benchmarkable do
  it 'should be faster than the old crap code' do
    old = lambda { 100.times.map { rand } }
    new = lambda { true }
    old.should be_at_least(10).times.slower_than(new)
  end
end

About

RSpec matcher to ensure code is faster/slower than other code, and by how much

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages