From b7affecab22d5ed45451f79dfa17c0e0549f3a75 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 9 Jun 2011 09:19:28 +0200 Subject: [PATCH] made a mistake for setting the thread count --- benchmark/search_bench.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/search_bench.rb b/benchmark/search_bench.rb index e4a8fe9..f589d85 100644 --- a/benchmark/search_bench.rb +++ b/benchmark/search_bench.rb @@ -43,7 +43,7 @@ query = Polecat::Query.new.add(Polecat::Term.new(:name, :lt, 25000)) Benchmark.bm do |x| x.report('1') { run_threads 1, n, searcher, query.dup } - x.report('2') { run_threads 1, n, searcher, query.dup } - x.report('4') { run_threads 1, n, searcher, query.dup } - x.report('8') { run_threads 1, n, searcher, query.dup } + x.report('2') { run_threads 2, n, searcher, query.dup } + x.report('4') { run_threads 4, n, searcher, query.dup } + x.report('8') { run_threads 8, n, searcher, query.dup } end