mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 04:07:58 +00:00
17 lines
250 B
YAML
17 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
|