YUKI Hiroshi
null+****@clear*****
Mon Oct 28 13:36:02 JST 2013
YUKI Hiroshi 2013-10-28 13:36:02 +0900 (Mon, 28 Oct 2013) New Revision: 1f463e3c05ee58b51d73b791d8cd02397843cff5 https://github.com/droonga/fluent-plugin-droonga/commit/1f463e3c05ee58b51d73b791d8cd02397843cff5 Message: Benchmark: prepare scan target in each Benchmark Modified files: benchmark/watch/benchmark-scan.rb Modified: benchmark/watch/benchmark-scan.rb (+4 -1) =================================================================== --- benchmark/watch/benchmark-scan.rb 2013-10-28 13:05:37 +0900 (94b8797) +++ benchmark/watch/benchmark-scan.rb 2013-10-28 13:36:02 +0900 (89f67f3) @@ -104,12 +104,15 @@ results_by_incidence = {} scan_benchmark = ScanBenchmark.new(options[:n_watching_terms]) options[:n_steps].times do |try_count| scan_benchmark.add_terms(scan_benchmark.n_terms) if try_count > 0 + puts "\n=============== #{scan_benchmark.n_terms} keywords ===============\n" options[:incidences].split(/[,\s]+/).each do |incidence| results_by_incidence[incidence] ||= [] - scan_benchmark.prepare_targets(incidence.to_f) label = "incidence #{incidence}/#{scan_benchmark.n_terms} keywords" result = Benchmark.bmbm do |benchmark| + puts "\n>>>>> targets for #{incidence}\n" + scan_benchmark.prepare_targets(incidence.to_f) benchmark.report(label) do + puts "\n>>>>>>>>>>> #{label}\n" scan_benchmark.run end end -------------- next part -------------- HTML����������������������������...Download