[Groonga-commit] droonga/http-benchmark at e687123 [master] Calculate total elapsed time correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Oct 7 17:29:44 JST 2013


YUKI Hiroshi	2013-10-07 17:29:44 +0900 (Mon, 07 Oct 2013)

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

  Message:
    Calculate total elapsed time correctly

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

  Modified: lib/droonga/http-benchmark.rb (+1 -1)
===================================================================
--- lib/droonga/http-benchmark.rb    2013-10-07 17:26:53 +0900 (fccf97b)
+++ lib/droonga/http-benchmark.rb    2013-10-07 17:29:44 +0900 (4ecd31f)
@@ -140,7 +140,7 @@ module Droonga
       puts "Elapsed time:"
       puts "  min:     #{min_elapsed_time} sec"
       puts "  max:     #{max_elapsed_time} sec"
-      puts "  average: #{total_elapsed_time.to_f / total_elapsed_time} sec"
+      puts "  average: #{total_elapsed_time / total_n_requests} sec"
     end
 
     def populate_requests
-------------- next part --------------
HTML����������������������������...
Download 



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