1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/float_to_s.yml

8 lines
110 B
YAML
Raw Normal View History

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