[Groonga-commit] droonga/fluent-plugin-droonga at a0c7159 [master] Run benchmark for each condition correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Oct 28 11:08:30 JST 2013


YUKI Hiroshi	2013-10-28 11:08:30 +0900 (Mon, 28 Oct 2013)

  New Revision: a0c71597dff3326862956f52ffbe0d92a0be74af
  https://github.com/droonga/fluent-plugin-droonga/commit/a0c71597dff3326862956f52ffbe0d92a0be74af

  Message:
    Run benchmark for each condition correctly

  Modified files:
    benchmark/watch/benchmark-scan.rb

  Modified: benchmark/watch/benchmark-scan.rb (+3 -3)
===================================================================
--- benchmark/watch/benchmark-scan.rb    2013-10-28 10:04:16 +0900 (4a8b55d)
+++ benchmark/watch/benchmark-scan.rb    2013-10-28 11:08:30 +0900 (fd0ec5a)
@@ -72,16 +72,16 @@ n_watching_terms = 1000
 step             = 1000
 n_tests          = 20
 incidences       = [0.1, 0.5, 0.9]
-Benchmark.bmbm do |benchmark|
   puts "starting..."
   incidences.each do |incidence|
-    puts "preparing bencharmk for incidence #{incidence}..."
     scan_benchmark = ScanBenchmark.new(n_watching_terms, incidence)
     n_tests.times do |try_count|
+Benchmark.bmbm do |benchmark|
       scan_benchmark.add_terms(step) if try_count > 0
       benchmark.report("incidence #{incidence}, #{scan_benchmark.n_terms} keywords") do
         scan_benchmark.run
       end
+end
     end
   end
-end
+
-------------- next part --------------
HTML����������������������������...
Télécharger 



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