-
-
Save ebeigarts/c160f9cf698b5d5e31685deeb50b5cb3 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 'bundler/setup' | |
require 'benchmark/ips' | |
require 'active_support/descendants_tracker' | |
class Parent | |
extend ActiveSupport::DescendantsTracker | |
end | |
Benchmark.ips do |x| | |
x.warmup = 1 | |
x.report("Class.new") { Class.new(Parent) } | |
x.compare! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment