diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-07-06 17:11:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-07-06 17:11:58 +0000 |
commit | 78e7a81c74fa452b2ee636ca3913d0130c3e5939 (patch) | |
tree | 8f67b12655050e61c2fa45dc3d21c68728528d9a /searchlib/src/tests/fef | |
parent | 5816b7cf411fef217d9add56595ec2dbf04ea4bb (diff) |
In order to reduce overhead we look at the hit estimate before fanning out to multiple threads.
Default is as today, configurable per rank-profile via min-hits-per-thread.
Default should be changed to a sane number once verified.
The main intentions is to counter the sometimes high cost of per thread rank-setup.
Diffstat (limited to 'searchlib/src/tests/fef')
-rw-r--r-- | searchlib/src/tests/fef/properties/properties_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchlib/src/tests/fef/properties/properties_test.cpp b/searchlib/src/tests/fef/properties/properties_test.cpp index a08d511b418..a904fd13e49 100644 --- a/searchlib/src/tests/fef/properties/properties_test.cpp +++ b/searchlib/src/tests/fef/properties/properties_test.cpp @@ -267,6 +267,15 @@ TEST("test stuff") { p.add("vespa.matching.numthreadspersearch", "50"); EXPECT_EQUAL(matching::NumThreadsPerSearch::lookup(p), 50u); } + + { // vespa.matching.minhitsperthread + EXPECT_EQUAL(matching::MinHitsPerThread::NAME, vespalib::string("vespa.matching.minhitsperthread")); + EXPECT_EQUAL(matching::MinHitsPerThread::DEFAULT_VALUE, 0); + Properties p; + EXPECT_EQUAL(matching::MinHitsPerThread::lookup(p), 0); + p.add("vespa.matching.minhitsperthread", "50"); + EXPECT_EQUAL(matching::MinHitsPerThread::lookup(p), 50u); + } { EXPECT_EQUAL(matching::NumSearchPartitions::NAME, vespalib::string("vespa.matching.numsearchpartitions")); EXPECT_EQUAL(matching::NumSearchPartitions::DEFAULT_VALUE, 1u); |