$ 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
Project
should_be_faster
provides rspec matcher to do simple benchmark tests
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Development
Dependencies
Project Readme