summaryrefslogtreecommitdiff
path: root/benchmark/array_max_float.yml
blob: ace1ae2e14a3b3b53cb7f514b11b2d7b2954d86f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
prelude: |
  ary2 = 2.times.map(&:to_f).shuffle
  ary10 = 10.times.map(&:to_f).shuffle
  ary100 = 100.times.map(&:to_f).shuffle
  ary500 = 500.times.map(&:to_f).shuffle
  ary1000 = 1000.times.map(&:to_f).shuffle
  ary2000 = 2500.times.map(&:to_f).shuffle
  ary3000 = 2500.times.map(&:to_f).shuffle
  ary5000 = 5000.times.map(&:to_f).shuffle
  ary10000 = 10000.times.map(&:to_f).shuffle
  ary20000 = 20000.times.map(&:to_f).shuffle
  ary50000 = 50000.times.map(&:to_f).shuffle
  ary100000 = 100000.times.map(&:to_f).shuffle

benchmark:
  ary2.max: ary2.max
  ary10.max: ary10.max
  ary100.max: ary100.max
  ary500.max: ary500.max
  ary1000.max: ary1000.max
  ary2000.max: ary2000.max
  ary3000.max: ary3000.max
  ary5000.max: ary5000.max
  ary10000.max: ary10000.max
  ary20000.max: ary20000.max
  ary50000.max: ary50000.max
  ary100000.max: ary100000.max

loop_count: 10000