1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

benchmarks for Bug#13136

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-01-20 02:27:28 +00:00
parent dfac1f5a61
commit 8f76ad3795
7 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 10}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 11}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 100}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 1000}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 6000}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 10_000}

View file

@ -0,0 +1,2 @@
arr = [*0...100000]
10_000.times {arr.sample 50_000}