[Groonga-commit] droonga/drnbench at 7f0dad1 [master] Define default path and method via command line parameters

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jan 16 11:58:13 JST 2014


YUKI Hiroshi	2014-01-16 11:58:13 +0900 (Thu, 16 Jan 2014)

  New Revision: 7f0dad163e4aac28788df5c5dc3043a860e4f1eb
  https://github.com/droonga/drnbench/commit/7f0dad163e4aac28788df5c5dc3043a860e4f1eb

  Message:
    Define default path and method via command line parameters

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

  Modified: bin/drnbench (+2 -0)
===================================================================
--- bin/drnbench    2014-01-16 11:56:32 +0900 (5964127)
+++ bin/drnbench    2014-01-16 11:58:13 +0900 (0fda08e)
@@ -12,6 +12,8 @@ options = {
   :mode => :http,
   :default_host => "localhost",
   :default_port => 80,
+  :default_path => "/",
+  :default_method => "GET",
   :report_progressively => true,
   :output_path => "/tmp/drnbench-result.csv",
 }

  Modified: lib/drnbench/client/http.rb (+2 -5)
===================================================================
--- lib/drnbench/client/http.rb    2014-01-16 11:56:32 +0900 (7689481)
+++ lib/drnbench/client/http.rb    2014-01-16 11:58:13 +0900 (72495af)
@@ -8,9 +8,6 @@ module Drnbench
   class HttpClient
     attr_reader :requests, :results, :wait
 
-    DEFAULT_PATH = "/"
-    DEFAULT_METHOD = "GET"
-
     def initialize(params)
       @requests = params[:requests]
       @result = params[:result]
@@ -18,8 +15,8 @@ module Drnbench
 
       @default_host = params[:default_host]
       @default_port = params[:default_port]
-      @default_path = params[:default_path] || DEFAULT_PATH
-      @default_method = params[:default_method] || DEFAULT_METHOD
+      @default_path = params[:default_path]
+      @default_method = params[:default_method]
     end
 
     def run
-------------- next part --------------
HTML����������������������������...
Télécharger 



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