summaryrefslogtreecommitdiff
path: root/benchmark/bm_array_sample_100k___10k.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_array_sample_100k___10k.rb')
-rw-r--r--benchmark/bm_array_sample_100k___10k.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sample_100k___10k.rb b/benchmark/bm_array_sample_100k___10k.rb
new file mode 100644
index 0000000000..5dd55ec058
--- /dev/null
+++ b/benchmark/bm_array_sample_100k___10k.rb
@@ -0,0 +1,2 @@
+arr = [*0...100000]
+10_000.times {arr.sample 10_000}