ruby-changes:47379
From: nobu <ko1@a...>
Date: Fri, 4 Aug 2017 13:25:20 +0900 (JST)
Subject: [ruby-changes:47379] nobu:r59494 (trunk): benchmarks for String#scan
nobu 2017-08-04 13:25:12 +0900 (Fri, 04 Aug 2017) New Revision: 59494 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59494 Log: benchmarks for String#scan Added files: trunk/benchmark/bm_string_scan_re.rb trunk/benchmark/bm_string_scan_str.rb Index: benchmark/bm_string_scan_str.rb =================================================================== --- benchmark/bm_string_scan_str.rb (nonexistent) +++ benchmark/bm_string_scan_str.rb (revision 59494) @@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_string_scan_str.rb#L1 +str = Array.new(1_000, 'abc').join(',') +1_000.times { str.scan('abc') } Property changes on: benchmark/bm_string_scan_str.rb ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +LF \ No newline at end of property Index: benchmark/bm_string_scan_re.rb =================================================================== --- benchmark/bm_string_scan_re.rb (nonexistent) +++ benchmark/bm_string_scan_re.rb (revision 59494) @@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_string_scan_re.rb#L1 +str = Array.new(1_000, 'abc').join(',') +1_000.times { str.scan(/abc/) } Property changes on: benchmark/bm_string_scan_re.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/