Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 300 Bytes
require 'benchmark'
require './runner'
class IncludeUser
include Runner
end
class Context
def self.call
user = IncludeUser.new
user.run
end
end
Benchmark.bm do |bench|
3.times do
bench.report('include') do
1000000.times do
Context.call
end
end
end
end