summaryrefslogtreecommitdiff
path: root/benchmark/float_methods.yml
blob: 56ea41effc8bf21927d3c8e2f925dccf43775896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
prelude: |
  flo = 4.2
benchmark:
  to_f: |
    flo.to_f
  abs: |
    flo.abs
  magnitude: |
    flo.magnitude
  -@: |
    -flo
  zero?: |
    flo.zero?
loop_count: 20000000