aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/bm_array_sample_100k___50k.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
commitb6376c0b4ef5fa1a53892663566f0791d6f45ead (patch)
tree9f6bd2d2306edacc1571ea3f7e723ed3ed8b9c4b /benchmark/bm_array_sample_100k___50k.rb
parent0f6fdeae9241950cac86dbc745660ed595a18882 (diff)
downloadruby-b6376c0b4ef5fa1a53892663566f0791d6f45ead.tar.gz
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___50k.rb')
-rw-r--r--benchmark/bm_array_sample_100k___50k.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sample_100k___50k.rb b/benchmark/bm_array_sample_100k___50k.rb
new file mode 100644
index 0000000000..1506732c3c
--- /dev/null
+++ b/benchmark/bm_array_sample_100k___50k.rb
@@ -0,0 +1,2 @@
+arr = [*0...100000]
+10_000.times {arr.sample 50_000}