Skip to content

Instantly share code, notes, and snippets.

@dwbutler
Last active December 29, 2015 19:18
Show Gist options
  • Save dwbutler/7716063 to your computer and use it in GitHub Desktop.
Save dwbutler/7716063 to your computer and use it in GitHub Desktop.
Cost of defined? in JRuby
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