diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-24 02:03:06 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-24 02:03:06 +0000 |
commit | 249bd1ed2a00c9c3defdd09224b22a6691f73789 (patch) | |
tree | d27e5f87525fcb6e333766b4bdeb25ee5b31b13c /ChangeLog | |
parent | ccbeb0d6dce7e38d98232f91fc0b4bbdc499674f (diff) |
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
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Sun Aug 24 10:35:54 2014 Pete Higgins <pete@peterhiggins.org> + + * lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK + (realtime): use Process.clock_gettime(BENCHMARK_CLOCK) + Reduces allocations to improve performance [Feature #10165] + + * test/benchmark/test_benchmark.rb (test_realtime_output): new test + Fri Aug 22 20:23:54 2014 Koichi Sasada <ko1@atdot.net> * string.c (rb_fstring): fix condition (easy to cause infinite loop!). |