1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/ractor_float_to_s.yml
Takashi Kokubun 27382eb9fc
Add a benchmark-driver runner for Ractor (#4172)
* Add a benchmark-driver runner for Ractor

* Process.clock_gettime(Process:CLOCK_MONOTONIC) could be slow

in Ruby 3.0 Ractor

* Fetching Time could also be slow

* Fix a comment

* Assert overriding a private method
2021-02-10 21:24:25 -08:00

8 lines
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