diff options
Diffstat (limited to 'benchmark/float_to_s.yml')
-rw-r--r-- | benchmark/float_to_s.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/float_to_s.yml b/benchmark/float_to_s.yml new file mode 100644 index 0000000000..0abae5cdb8 --- /dev/null +++ b/benchmark/float_to_s.yml @@ -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 |