ruby--ruby/benchmark/bm_vm1_block.rb

11 lines
81 B
Ruby

def m
yield
end
i = 0
while i<30_000_000 # while loop 1
i += 1
m{
}
end