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:
parent
dfac1f5a61
commit
8f76ad3795
7 changed files with 14 additions and 0 deletions
2
benchmark/bm_array_sample_100k_10.rb
Normal file
2
benchmark/bm_array_sample_100k_10.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 10}
|
2
benchmark/bm_array_sample_100k_11.rb
Normal file
2
benchmark/bm_array_sample_100k_11.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 11}
|
2
benchmark/bm_array_sample_100k__100.rb
Normal file
2
benchmark/bm_array_sample_100k__100.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 100}
|
2
benchmark/bm_array_sample_100k__1k.rb
Normal file
2
benchmark/bm_array_sample_100k__1k.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 1000}
|
2
benchmark/bm_array_sample_100k__6k.rb
Normal file
2
benchmark/bm_array_sample_100k__6k.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 6000}
|
2
benchmark/bm_array_sample_100k___10k.rb
Normal file
2
benchmark/bm_array_sample_100k___10k.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 10_000}
|
2
benchmark/bm_array_sample_100k___50k.rb
Normal file
2
benchmark/bm_array_sample_100k___50k.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
arr = [*0...100000]
|
||||
10_000.times {arr.sample 50_000}
|
Loading…
Reference in a new issue