[Groonga-commit] droonga/drnbench at 549c56b [master] Use "Drnbench" namespace because this software name was changed to drnbench

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Oct 16 18:07:57 JST 2013


Kouhei Sutou	2013-10-16 18:07:57 +0900 (Wed, 16 Oct 2013)

  New Revision: 549c56b012c32c8a2c65e73b741ad0ed6c53e177
  https://github.com/droonga/drnbench/commit/549c56b012c32c8a2c65e73b741ad0ed6c53e177

  Message:
    Use "Drnbench" namespace because this software name was changed to drnbench
    
    Droonga::Benchmark ->
    Drnbench

  Added files:
    lib/drnbench.rb
  Removed files:
    lib/droonga/benchmark.rb
  Modified files:
    bin/drnbench
  Renamed files:
    lib/drnbench/client/http-droonga-search.rb
      (from lib/droonga/benchmark/client/http-droonga-search.rb)
    lib/drnbench/client/http.rb
      (from lib/droonga/benchmark/client/http.rb)
    lib/drnbench/gradual-runner.rb
      (from lib/droonga/benchmark/gradual-runner.rb)
    lib/drnbench/result.rb
      (from lib/droonga/benchmark/result.rb)
    lib/drnbench/runner.rb
      (from lib/droonga/benchmark/runner.rb)

  Modified: bin/drnbench (+2 -2)
===================================================================
--- bin/drnbench    2013-10-16 17:55:57 +0900 (30c4737)
+++ bin/drnbench    2013-10-16 18:07:57 +0900 (67627f1)
@@ -1,7 +1,7 @@
 #!/usr/bin/env ruby
 # -*- coding: utf-8 -*-
 
-require "droonga/benchmark"
+require "drnbench"
 require "optparse"
 require "json"
 
@@ -83,7 +83,7 @@ request_patterns = File.read(options[:request_patterns_file])
 request_patterns = JSON.parse(request_patterns, :symbolize_names => true)
 options[:request_patterns] = request_patterns
 
-runner = Droonga::Benchmark::GradualRunner.new(options)
+runner = Drnbench::GradualRunner.new(options)
 runner.run
 
 File.open(options[:output_path], "w") do |file|

  Added: lib/drnbench.rb (+4 -0) 100644
===================================================================
--- /dev/null
+++ lib/drnbench.rb    2013-10-16 18:07:57 +0900 (0e4d80f)
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+
+require "drnbench/runner"
+require "drnbench/gradual-runner"

  Renamed: lib/drnbench/client/http-droonga-search.rb (+1 -3) 93%
===================================================================
--- lib/droonga/benchmark/client/http-droonga-search.rb    2013-10-16 17:55:57 +0900 (4fda011)
+++ lib/drnbench/client/http-droonga-search.rb    2013-10-16 18:07:57 +0900 (ee42e6b)
@@ -1,7 +1,6 @@
 # -*- coding: utf-8 -*-
 
-module Droonga
-  module Benchmark
+module Drnbench
     class HttpDroongaSearchClient < HttpClient
       DEFAULT_PATH = "/droonga/search"
       DEFAULT_METHOD = "POST"
@@ -24,5 +23,4 @@ module Droonga
         end
       end
     end
-  end
 end

  Renamed: lib/drnbench/client/http.rb (+1 -3) 97%
===================================================================
--- lib/droonga/benchmark/client/http.rb    2013-10-16 17:55:57 +0900 (e6c3a48)
+++ lib/drnbench/client/http.rb    2013-10-16 18:07:57 +0900 (de6cad5)
@@ -4,8 +4,7 @@ require "thread"
 require "net/http"
 require "json"
 
-module Droonga
-  module Benchmark
+module Drnbench
     class HttpClient
       attr_reader :requests, :results, :wait
 
@@ -65,5 +64,4 @@ module Droonga
         @thread.exit
       end
     end
-  end
 end

  Renamed: lib/drnbench/gradual-runner.rb (+2 -4) 96%
===================================================================
--- lib/droonga/benchmark/gradual-runner.rb    2013-10-16 17:55:57 +0900 (8e48417)
+++ lib/drnbench/gradual-runner.rb    2013-10-16 18:07:57 +0900 (cb8aa51)
@@ -1,10 +1,9 @@
 # -*- coding: utf-8 -*-
 
-require "droonga/benchmark/runner"
+require "drnbench/runner"
 require "csv"
 
-module Droonga
-  module Benchmark
+module Drnbench
     class GradualRunner
       attr_reader :start_n_clients, :end_n_clients, :step
       attr_reader :report_progressively, :result
@@ -87,5 +86,4 @@ module Droonga
         end
       end
     end
-  end
 end

  Renamed: lib/drnbench/result.rb (+1 -3) 98%
===================================================================
--- lib/droonga/benchmark/result.rb    2013-10-16 17:55:57 +0900 (41308bf)
+++ lib/drnbench/result.rb    2013-10-16 18:07:57 +0900 (280f916)
@@ -1,7 +1,6 @@
 # -*- coding: utf-8 -*-
 
-module Droonga
-  module Benchmark
+module Drnbench
     class Result
       attr_reader :n_clients, :duration, :statuses
 
@@ -110,5 +109,4 @@ module Droonga
         status_percentages
       end
     end
-  end
 end

  Renamed: lib/drnbench/runner.rb (+4 -6) 94%
===================================================================
--- lib/droonga/benchmark/runner.rb    2013-10-16 17:55:57 +0900 (5183cde)
+++ lib/drnbench/runner.rb    2013-10-16 18:07:57 +0900 (0d358c8)
@@ -1,11 +1,10 @@
 # -*- coding: utf-8 -*-
 
-require "droonga/benchmark/client/http"
-require "droonga/benchmark/client/http-droonga-search"
-require "droonga/benchmark/result"
+require "drnbench/client/http"
+require "drnbench/client/http-droonga-search"
+require "drnbench/result"
 
-module Droonga
-  module Benchmark
+module Drnbench
     class Runner
       attr_reader :duration, :n_clients, :result
 
@@ -116,5 +115,4 @@ module Droonga
         end
       end
     end
-  end
 end

  Deleted: lib/droonga/benchmark.rb (+0 -4) 100644
===================================================================
--- lib/droonga/benchmark.rb    2013-10-16 17:55:57 +0900 (d0be687)
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- coding: utf-8 -*-
-
-require "droonga/benchmark/runner"
-require "droonga/benchmark/gradual-runner"
-------------- next part --------------
HTML����������������������������...
Download 



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