ruby/benchmark/array_max_int.yml

32 строки
865 B
YAML
Исходник Обычный вид История

prelude: |
ary2 = 2.times.to_a.shuffle
ary10 = 10.times.to_a.shuffle
ary100 = 100.times.to_a.shuffle
ary500 = 500.times.to_a.shuffle
ary1000 = 1000.times.to_a.shuffle
ary2000 = 2500.times.to_a.shuffle
ary3000 = 2500.times.to_a.shuffle
ary5000 = 5000.times.to_a.shuffle
ary10000 = 10000.times.to_a.shuffle
ary20000 = 20000.times.to_a.shuffle
ary50000 = 50000.times.to_a.shuffle
ary100000 = 100000.times.to_a.shuffle
ary1000000 = 1000000.times.to_a.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
ary1000000.max: ary1000000.max
loop_count: 10000