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 | 8f76ad379522870d35038ed53c782812259eb4b3 (patch) | |
tree | 9f6bd2d2306edacc1571ea3f7e723ed3ed8b9c4b /benchmark/bm_array_sample_100k___10k.rb | |
parent | dfac1f5a619a377874f5a62e1cea1275dc821cb9 (diff) | |
download | ruby-8f76ad379522870d35038ed53c782812259eb4b3.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___10k.rb')
-rw-r--r-- | benchmark/bm_array_sample_100k___10k.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sample_100k___10k.rb b/benchmark/bm_array_sample_100k___10k.rb new file mode 100644 index 0000000000..5dd55ec058 --- /dev/null +++ b/benchmark/bm_array_sample_100k___10k.rb @@ -0,0 +1,2 @@ +arr = [*0...100000] +10_000.times {arr.sample 10_000} |