ruby--ruby/benchmark/float_to_s.yml

8 lines
110 B
YAML
Raw Normal View History

2021-02-10 10:42:00 +00:00
prelude: |
floats = [*0.0.step(1.0, 0.0001)]
benchmark:
to_s: floats.each {|f| f.to_s}
loop_count: 1000