ruby/benchmark/bm_vm2_method.rb

10 строки
99 B
Ruby

def m
nil
end
i = 0
while i<6_000_000 # benchmark loop 2
i += 1
m; m; m; m; m; m; m; m;
end