ruby/benchmark/float_to_s.yml

8 строки
110 B
YAML

prelude: |
floats = [*0.0.step(1.0, 0.0001)]
benchmark:
to_s: floats.each {|f| f.to_s}
loop_count: 1000