aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/array_values_at_range.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/array_values_at_range.rb')
-rw-r--r--benchmark/array_values_at_range.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/array_values_at_range.rb b/benchmark/array_values_at_range.rb
new file mode 100644
index 0000000000..5b53806d1c
--- /dev/null
+++ b/benchmark/array_values_at_range.rb
@@ -0,0 +1,2 @@
+ary = Array.new(10000) {|i| i}
+100000.times { ary.values_at(1..2000) }