ruby--ruby/benchmark/bm_vm1_yield.rb

11 lines
87 B
Ruby

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