Last active
February 27, 2016 00:59
-
-
Save mohnish/fc07720081b904a5b713 to your computer and use it in GitHub Desktop.
base benchmark file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'benchmark/ips' | |
| Benchmark.ips do |x| | |
| x.config(time: 5, warmup: 2) | |
| x.report('foo') do |times| | |
| end | |
| x.report('bar') do |times| | |
| end | |
| x.compare! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment