summaryrefslogtreecommitdiff
path: root/benchmark/bm_array_sort_block.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_array_sort_block.rb')
-rw-r--r--benchmark/bm_array_sort_block.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sort_block.rb b/benchmark/bm_array_sort_block.rb
new file mode 100644
index 0000000000..3579786056
--- /dev/null
+++ b/benchmark/bm_array_sort_block.rb
@@ -0,0 +1,2 @@
+ary = Array.new(1000) { rand(1000) }
+10000.times { ary.sort { |a, b| a <=> b } }