[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-cvs
Subject:    [ruby-cvs:37937] Ruby:r30747 (trunk): * lib/benchmark.rb: fix benchmarck to work with current ruby.
From:       naruse () ruby-lang ! org
Date:       2011-01-31 16:11:06
Message-ID: 201101311611.p0VGB6c8022248 () ci ! ruby-lang ! org
[Download RAW message or body]

naruse	2011-02-01 01:11:06 +0900 (Tue, 01 Feb 2011)

  New Revision: 30747

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30747

  Log:
    * lib/benchmark.rb: fix benchmarck to work with current ruby.
      patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143]
      merged from https://github.com/eregon/ruby/commits/benchmark
    
    *  lib/benchmark (Report#width): update documentation
    *  lib/benchmark: document the return value of #benchmark and the
       :list attribute in Report
    *  lib/benchmark (Tms#format): rename variables, use String#%
       instead of Kernel.format
    *  lib/benchmark: remove undocumented Benchmark::times (an alias
       of Process::times used twice)
    *  lib/benchmark (#benchmark): use label_width for the caption
    *  lib/benchmark (Tms#initialize): rename variables
    *  lib/benchmark: allow title to not be a String and call #to_s
    *  lib/benchmark (Benchmark#bm): return an Array of the times with
       the labels
    *  lib/benchmark: correct output for Benchmark#bmbm
       (remove the extra space)
    *  lib/benchmark: add a few tests for Benchmark::Tms output
    *  lib/benchmark: improve style (enumerators, ljust, unused vars)
    *  lib/benchmark: add spec about output and return value
    *  lib/benchmark: improve basic style and consistency
       no parenthesis for print and use interpolation instead of printf
    *  lib/benchmark: remove unnecessary conversions and variables
    *  lib/benchmark: correct indentation
    *  lib/benchmark: rename the FMTSTR constant and variable to FORMAT
    *  lib/benchmark: remove useless exception
    
    *  test/benchmark: remove unused variable warnings

  Modified files:
    trunk/ChangeLog
    trunk/lib/benchmark.rb
    trunk/test/benchmark/test_benchmark.rb

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic