ruby/benchmark/bm_vm2_method_with_block.rb

10 строки
115 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