diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-13 08:09:06 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-13 08:09:06 +0000 |
commit | c121171525f3c0bd92c62b88749949249c10af2d (patch) | |
tree | 08400ad17f6ff8fc1877eec6739957eebf06cb0a /benchmark | |
parent | 57108574563c7cbd9f753ab3ee32f34674209d40 (diff) | |
download | ruby-c121171525f3c0bd92c62b88749949249c10af2d.tar.gz |
Add a benchmark script for Array#sort of float array
[Bug #13340]
[ruby-dev:50023]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/bm_array_sort_float.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/bm_array_sort_float.rb b/benchmark/bm_array_sort_float.rb new file mode 100644 index 0000000000..9a6e2f8bd2 --- /dev/null +++ b/benchmark/bm_array_sort_float.rb @@ -0,0 +1,2 @@ +arr = Array.new(1000) { rand } +10000.times { arr.sort } |