Simple benchmark of Float#to_s
This commit is contained in:
parent
281dfacb5d
commit
ad2c7f8a1e
7
benchmark/float_to_s.yml
Normal file
7
benchmark/float_to_s.yml
Normal file
@ -0,0 +1,7 @@
|
||||
prelude: |
|
||||
floats = [*0.0.step(1.0, 0.0001)]
|
||||
|
||||
benchmark:
|
||||
to_s: floats.each {|f| f.to_s}
|
||||
|
||||
loop_count: 1000
|
Loading…
x
Reference in New Issue
Block a user