ruby/benchmark/bm_vm1_blockparam_yield.rb

10 строки
95 B
Ruby
Executable File

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