summaryrefslogtreecommitdiff
path: root/benchmark/array_sort_block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/array_sort_block.yml')
-rw-r--r--benchmark/array_sort_block.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/array_sort_block.yml b/benchmark/array_sort_block.yml
new file mode 100644
index 0000000..775db90
--- /dev/null
+++ b/benchmark/array_sort_block.yml
@@ -0,0 +1,5 @@
+benchmark:
+ array_sort_block: |
+ ary = Array.new(1000) { rand(1000) }
+ 10000.times { ary.sort { |a, b| a <=> b } }
+loop_count: 1