ruby--ruby/benchmark/bm_vm1_simplereturn.rb

10 lines
79 B
Ruby

def m
return 1
end
i = 0
while i<30_000_000 # while loop 1
i += 1
m
end