mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
16 lines
250 B
YAML
16 lines
250 B
YAML
benchmark:
|
|
fstring_random: |
|
|
i = 0
|
|
str = "same".dup
|
|
while i < 5_000_000
|
|
-(i.to_s.freeze)
|
|
i += 1
|
|
end
|
|
fstring_same: |
|
|
i = 0
|
|
str = "same".dup
|
|
while i < 10_000_000
|
|
-str
|
|
i += 1
|
|
end
|
|
loop_count: 1
|