Created
December 28, 2016 18:53
-
-
Save benlovell/438cfb0310cf67a065df0f1c09122222 to your computer and use it in GitHub Desktop.
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.report('yours') { 0.class == Integer } | |
x.report('mine') { 0.is_a? Integer } | |
x.compare! | |
end |
Author
benlovell
commented
Dec 28, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment