ruby/benchmark/float_to_s.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 строки
110 B
YAML
Исходник Обычный вид История

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