diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-20 02:27:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-20 02:27:28 +0000 |
commit | b6376c0b4ef5fa1a53892663566f0791d6f45ead (patch) | |
tree | 9f6bd2d2306edacc1571ea3f7e723ed3ed8b9c4b /benchmark/bm_array_sample_100k__100.rb | |
parent | 0f6fdeae9241950cac86dbc745660ed595a18882 (diff) | |
download | ruby-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__100.rb')
-rw-r--r-- | benchmark/bm_array_sample_100k__100.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sample_100k__100.rb b/benchmark/bm_array_sample_100k__100.rb new file mode 100644 index 0000000000..22863afe89 --- /dev/null +++ b/benchmark/bm_array_sample_100k__100.rb @@ -0,0 +1,2 @@ +arr = [*0...100000] +10_000.times {arr.sample 100} |