RSpec matcher to ensure code is faster/slower than other code, and by how much
License
dsturnbull/should_be_faster
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published