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