ruby--ruby/benchmark/bm_vm1_simplereturn.rb

10 lines
73 B
Ruby

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