summaryrefslogtreecommitdiff
path: root/benchmark/bm_array_sample_100k__6k.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-20 02:27:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-20 02:27:28 +0000
commit8f76ad379522870d35038ed53c782812259eb4b3 (patch)
tree9f6bd2d2306edacc1571ea3f7e723ed3ed8b9c4b /benchmark/bm_array_sample_100k__6k.rb
parentdfac1f5a619a377874f5a62e1cea1275dc821cb9 (diff)
benchmarks for Bug#13136
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_array_sample_100k__6k.rb')
-rw-r--r--benchmark/bm_array_sample_100k__6k.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sample_100k__6k.rb b/benchmark/bm_array_sample_100k__6k.rb
new file mode 100644
index 0000000000..b3d264249e
--- /dev/null
+++ b/benchmark/bm_array_sample_100k__6k.rb
@@ -0,0 +1,2 @@
+arr = [*0...100000]
+10_000.times {arr.sample 6000}