YUKI Hiroshi
null+****@clear*****
Thu Oct 10 15:00:46 JST 2013
YUKI Hiroshi 2013-10-10 15:00:46 +0900 (Thu, 10 Oct 2013) New Revision: eddfe239836fc28c8f3d3cac85db940fab91b0ff https://github.com/droonga/drnbench/commit/eddfe239836fc28c8f3d3cac85db940fab91b0ff Message: Remove "Http" prefix Added files: lib/droonga/benchmark.rb Removed files: lib/droonga/http-benchmark.rb Renamed files: bin/drnbench (from bin/http-benchmark) lib/droonga/benchmark/gradual-runner.rb (from lib/droonga/http-benchmark/gradual-runner.rb) lib/droonga/benchmark/runner.rb (from lib/droonga/http-benchmark/runner.rb) Renamed: bin/drnbench (+3 -3) 94% =================================================================== --- bin/http-benchmark 2013-10-10 11:18:46 +0900 (d74fd0f) +++ bin/drnbench 2013-10-10 15:00:46 +0900 (53a98cb) @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # -*- coding: utf-8 -*- -require "droonga/http-benchmark" +require "droonga/benchmark" require "optparse" require "json" @@ -10,7 +10,7 @@ options = { :end_n_clients => 1, :step => 1, :report_progressively => true, - :output_path => "/tmp/http-benchmark-result.csv", + :output_path => "/tmp/drnbench-result.csv", } option_parser = OptionParser.new do |parser| parser.on("--duration=SECONDS", Float, @@ -75,7 +75,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::HttpBenchmark::GradualRunner.new(options) +runner = Droonga::Benchmark::GradualRunner.new(options) runner.run File.open(options[:output_path], "w") do |file| Added: lib/droonga/benchmark.rb (+4 -0) 100644 =================================================================== --- /dev/null +++ lib/droonga/benchmark.rb 2013-10-10 15:00:46 +0900 (d0be687) @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +require "droonga/benchmark/runner" +require "droonga/benchmark/gradual-runner" Renamed: lib/droonga/benchmark/gradual-runner.rb (+2 -2) 97% =================================================================== --- lib/droonga/http-benchmark/gradual-runner.rb 2013-10-10 11:18:46 +0900 (6ca8cab) +++ lib/droonga/benchmark/gradual-runner.rb 2013-10-10 15:00:46 +0900 (3cc7e88) @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- -require "droonga/http-benchmark/runner" +require "droonga/benchmark/runner" require "csv" module Droonga - module HttpBenchmark + module Benchmark class GradualRunner attr_reader :start_n_clients, :end_n_clients, :step attr_reader :report_progressively, :result Renamed: lib/droonga/benchmark/runner.rb (+2 -2) 99% =================================================================== --- lib/droonga/http-benchmark/runner.rb 2013-10-10 11:18:46 +0900 (585429c) +++ lib/droonga/benchmark/runner.rb 2013-10-10 15:00:46 +0900 (f526a20) @@ -5,7 +5,7 @@ require "net/http" require "json" module Droonga - module HttpBenchmark + module Benchmark class Runner attr_reader :duration, :n_clients, :result @@ -132,7 +132,7 @@ module Droonga request =****@reque***** Net::HTTP.start(request[:host], request[:port]) do |http| header = { - "user-agent" => "Ruby/#{RUBY_VERSION} Droonga::HttpBenchmark::Runner::Client" + "user-agent" => "Ruby/#{RUBY_VERSION} Droonga::Benchmark::Runner::Client" } response = nil start_time = Time.now Deleted: lib/droonga/http-benchmark.rb (+0 -4) 100644 =================================================================== --- lib/droonga/http-benchmark.rb 2013-10-10 11:18:46 +0900 (3975a0b) +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- - -require "droonga/http-benchmark/runner" -require "droonga/http-benchmark/gradual-runner" -------------- next part -------------- HTML����������������������������...Download