ruby/benchmark/ractor_float_to_s.yml

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

type: lib/benchmark_driver/runner/ractor
prelude: |
FLOATS = [*0.0.step(1.0, 0.001)]
benchmark:
ractor_float_to_s: |
FLOATS.each {|f| f.to_s}
loop_count: 100
ractor: 2