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