ruby--ruby/benchmark/array_sort_float.rb

3 lines
56 B
Ruby

arr = Array.new(1000) { rand }
10000.times { arr.sort }