ruby-changes:50297
From: nobu <ko1@a...>
Date: Thu, 15 Feb 2018 15:14:50 +0900 (JST)
Subject: [ruby-changes:50297] nobu:r62412 (trunk): Benchmarks for Array#values_at
nobu 2018-02-15 15:14:42 +0900 (Thu, 15 Feb 2018) New Revision: 62412 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62412 Log: Benchmarks for Array#values_at Added files: trunk/benchmark/bm_array_values_at_int.rb trunk/benchmark/bm_array_values_at_range.rb Index: benchmark/bm_array_values_at_int.rb =================================================================== --- benchmark/bm_array_values_at_int.rb (nonexistent) +++ benchmark/bm_array_values_at_int.rb (revision 62412) @@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_array_values_at_int.rb#L1 +ary = Array.new(10000) {|i| i} +100000.times { ary.values_at(500) } Property changes on: benchmark/bm_array_values_at_int.rb ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +LF \ No newline at end of property Index: benchmark/bm_array_values_at_range.rb =================================================================== --- benchmark/bm_array_values_at_range.rb (nonexistent) +++ benchmark/bm_array_values_at_range.rb (revision 62412) @@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_array_values_at_range.rb#L1 +ary = Array.new(10000) {|i| i} +100000.times { ary.values_at(1..2000) } Property changes on: benchmark/bm_array_values_at_range.rb ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +LF \ No newline at end of property -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/