[Groonga-commit] droonga/drnbench at 1e26ccf [master] Calculate index correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jul 30 11:58:06 JST 2014


YUKI Hiroshi	2014-07-30 11:58:06 +0900 (Wed, 30 Jul 2014)

  New Revision: 1e26ccfcb03e089491e1eb6b3917462fe6756e92
  https://github.com/droonga/drnbench/commit/1e26ccfcb03e089491e1eb6b3917462fe6756e92

  Message:
    Calculate index correctly

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

  Modified: lib/drnbench/client/http.rb (+4 -2)
===================================================================
--- lib/drnbench/client/http.rb    2014-07-30 11:56:20 +0900 (59675f3)
+++ lib/drnbench/client/http.rb    2014-07-30 11:58:06 +0900 (b786325)
@@ -27,6 +27,7 @@ module Drnbench
       @requests = params[:requests]
       @result   = params[:result]
       @config   = config
+      @count    = 0
     end
 
     def run
@@ -48,10 +49,11 @@ module Drnbench
             :request => request,
             :status => response.code,
             :elapsed_time => Time.now - start_time,
-            :index => @result.size,
+            :index => @count,
           }
           @last_request = nil
           @last_start_time = nil
+          @count += 1
           sleep****@confi*****
         end
       end
@@ -66,7 +68,7 @@ module Drnbench
           :request => @last_request,
           :status => "0",
           :elapsed_time => Time.now - @last_start_time,
-          :index => "#{@result.size}(last)",
+          :index => "#{@count}(last)",
         }
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



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