YUKI Hiroshi
null+****@clear*****
Fri Nov 28 16:25:22 JST 2014
YUKI Hiroshi 2014-11-28 16:25:22 +0900 (Fri, 28 Nov 2014) New Revision: afd73f7d46b1fb021aa7859878c503967b5d7299 https://github.com/droonga/drnbench/commit/afd73f7d46b1fb021aa7859878c503967b5d7299 Message: Run GC before disable it Modified files: lib/drnbench/request-response/runner.rb Modified: lib/drnbench/request-response/runner.rb (+5 -3) =================================================================== --- lib/drnbench/request-response/runner.rb 2014-11-28 16:16:06 +0900 (c47a6ee) +++ lib/drnbench/request-response/runner.rb 2014-11-28 16:25:22 +0900 (cdf8298) @@ -95,9 +95,6 @@ module Drnbench child_read, parent_write = IO.pipe pid = fork do - # Because continuous benchmark increases objects, - # GC painflly slows down the process. - GC.disable parent_write.close parent_read.close @@ -107,6 +104,11 @@ module Drnbench @requests = requests_queue @result = [] + # Because continuous benchmark increases objects, + # GC painflly slows down the process. + GC.start + GC.disable + clients = setup_clients(n_clients) loop do -------------- next part -------------- HTML����������������������������...下載