[Groonga-commit] droonga/drnbench at 3ebdf89 [master] Don't include last aborted request to the result.

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 28 11:36:25 JST 2014


YUKI Hiroshi	2014-11-28 11:36:25 +0900 (Fri, 28 Nov 2014)

  New Revision: 3ebdf89387035420d7ed7fde8d60b383c1456454
  https://github.com/droonga/drnbench/commit/3ebdf89387035420d7ed7fde8d60b383c1456454

  Message:
    Don't include last aborted request to the result.
    
    "Not respond" requests should be tracked by "timeout" feature.

  Modified files:
    lib/drnbench/client/http.rb

  Modified: lib/drnbench/client/http.rb (+0 -15)
===================================================================
--- lib/drnbench/client/http.rb    2014-11-27 18:23:41 +0900 (6407fa6)
+++ lib/drnbench/client/http.rb    2014-11-28 11:36:25 +0900 (9587a44)
@@ -55,8 +55,6 @@ module Drnbench
           request["headers"] ||= {}
           request["headers"]["user-agent"] = "Ruby/#{RUBY_VERSION} Droonga::Benchmark::Runner::HttpClient"
           start_time = Time.now
-          @last_request = request
-          @last_start_time = start_time
           begin
           response = client.request(request)
             @runner.push_result(
@@ -75,8 +73,6 @@ module Drnbench
               :index => @count,
             )
           end
-          @last_request = nil
-          @last_start_time = nil
           @count += 1
           sleep****@confi*****
         end
@@ -89,17 +85,6 @@ module Drnbench
 
       @thread.exit
       @thread = nil
-
-      if @last_request
-        @runner.push_result(
-          :request => @last_request,
-          :status => "0",
-          :elapsed_time => Time.now - @last_start_time,
-          :client => @id,
-          :index => @count,
-          :last => true,
-        )
-      end
     end
 
     def running?
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index