summaryrefslogtreecommitdiff
path: root/benchmark/vm_symbol_block_pass.rb
blob: 1d433353e1f0164a304494649afed92fc23cafef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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