-
-
Save cheald/4a2e40667dc1e274b181 to your computer and use it in GitHub Desktop.
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' | |
cls = Class.new | |
20.times { cls = Class.new(cls) } | |
puts Benchmark.measure { cls.non_existing_method rescue nil } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment