[ruby-cvs:54408] normal:r47260 (trunk): lib/benchmark.rb: speedup by reducing allocations

normal at ruby-lang.org normal at ruby-lang.org
Sun Aug 24 11:03:08 JST 2014


normal	2014-08-24 11:03:06 +0900 (Sun, 24 Aug 2014)

  New Revision: 47260

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

  Log:
    lib/benchmark.rb: speedup by reducing allocations
    
    * lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK
      (realtime): use Process.clock_gettime(BENCHMARK_CLOCK)
      [Feature #10165]
    
    * test/benchmark/test_benchmark.rb (test_realtime_output): new test

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


More information about the ruby-cvs mailing list