1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/bm_vm_symbol_block_pass.rb

14 lines
156 B
Ruby
Raw Normal View History

class C
1000.times {|i|
eval("def i#{i};end")
}
end
c = C.new
m = C.instance_methods(false)
5_000.times do
m.each do |n|
c.tap(&n)
end
end