[Groonga-commit] droonga/http-benchmark at 14bf464 [master] Output "queries per second" as a float

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Oct 7 17:33:42 JST 2013


YUKI Hiroshi	2013-10-07 17:33:42 +0900 (Mon, 07 Oct 2013)

  New Revision: 14bf4649fabd0d6b1a36332704e592658d5e1ef2
  https://github.com/droonga/http-benchmark/commit/14bf4649fabd0d6b1a36332704e592658d5e1ef2

  Message:
    Output "queries per second" as a float

  Modified files:
    lib/droonga/http-benchmark.rb

  Modified: lib/droonga/http-benchmark.rb (+1 -1)
===================================================================
--- lib/droonga/http-benchmark.rb    2013-10-07 17:32:36 +0900 (dd6d78d)
+++ lib/droonga/http-benchmark.rb    2013-10-07 17:33:42 +0900 (7164074)
@@ -132,7 +132,7 @@ module Droonga
       end
 
       puts "Total requests: #{total_n_requests} " +
-             "(#{total_n_requests / @duration} queries per second)"
+             "(#{total_n_requests.to_f / @duration} queries per second)"
       puts "Status:"
       http_status_percentages.each do |status|
         puts "  #{status[:status]}: #{status[:percentage]} %"
-------------- next part --------------
HTML����������������������������...
Download 



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