ruby/benchmark/vm_dstr_bool.rb

8 строки
103 B
Ruby

i = 0
x = true
y = false
while i<6_000_000 # benchmark loop 2
i += 1
str = "foo#{x}bar#{y}baz"
end