Last active
December 29, 2015 19:18
-
-
Save dwbutler/7716063 to your computer and use it in GitHub Desktop.
Cost of defined? in JRuby
This file contains 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' | |
Benchmark.bm {|x| x.report { 1_000.times { defined?(::UNF::Normalizer) } } } | |
user system total real | |
0.300000 0.010000 0.310000 ( 0.340000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment