[Groonga-commit] droonga/drnbench at ed41ce5 [master] Add "Http" prefix for Client

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 10 15:02:36 JST 2013


YUKI Hiroshi	2013-10-10 15:02:36 +0900 (Thu, 10 Oct 2013)

  New Revision: ed41ce545ec8eb6e8791ae791805501924184a84
  https://github.com/droonga/drnbench/commit/ed41ce545ec8eb6e8791ae791805501924184a84

  Message:
    Add "Http" prefix for Client

  Modified files:
    lib/droonga/benchmark/runner.rb

  Modified: lib/droonga/benchmark/runner.rb (+5 -5)
===================================================================
--- lib/droonga/benchmark/runner.rb    2013-10-10 15:00:46 +0900 (f526a20)
+++ lib/droonga/benchmark/runner.rb    2013-10-10 15:02:36 +0900 (32af846)
@@ -54,9 +54,9 @@ module Droonga
                              :duration => @duration)
 
         @clients = @n_clients.times.collect do |index|
-          client = Client.new(:requests => requests_queue,
-                              :result => @result,
-                              :wait => @wait)
+          client = HttpClient.new(:requests => requests_queue,
+                                  :result => @result,
+                                  :wait => @wait)
           client.run
           client
         end
@@ -117,7 +117,7 @@ module Droonga
         end
       end
 
-      class Client
+      class HttpClient
         attr_reader :requests, :results, :wait
 
         def initialize(params)
@@ -132,7 +132,7 @@ module Droonga
               request =****@reque*****
               Net::HTTP.start(request[:host], request[:port]) do |http|
                 header = {
-                  "user-agent" => "Ruby/#{RUBY_VERSION} Droonga::Benchmark::Runner::Client"
+                  "user-agent" => "Ruby/#{RUBY_VERSION} Droonga::Benchmark::Runner::HttpClient"
                 }
                 response = nil
                 start_time = Time.now
-------------- next part --------------
HTML����������������������������...
Download 



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