summaryrefslogtreecommitdiff
path: root/benchmark/bm_vm2_proc.rb
blob: 65e52173717aea00492e938f4f77f3b92046e629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def m &b
  b
end

pr = m{
  a = 1
}

i = 0
while i<6_000_000 # benchmark loop 2
  i += 1
  pr.call
end