зеркало из https://github.com/github/ruby.git
11 строки
162 B
Ruby
11 строки
162 B
Ruby
|
i = 0
|
||
|
class A; end unless defined?(A)
|
||
|
module B; end unless defined?(B)
|
||
|
x = A
|
||
|
y = B
|
||
|
while i<6_000_000 # benchmark loop 2
|
||
|
i += 1
|
||
|
str = "foo#{x}bar#{y}baz"
|
||
|
end
|
||
|
|