aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/weak_and/parallel_weak_and_bench.cpp
blob: 8df6581589447002042a8b49206ab29637df777e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "wand_bench_setup.hpp"

TEST_FF("benchmark", VespaParallelWandFactory(1000),  WandSetup(f1,    10, 10000000)) { f2.benchmark(); }
TEST_FF("benchmark", DotProductRiseWandFactory(1000), WandSetup(f1,    10, 10000000)) { f2.benchmark(); }
TEST_FF("benchmark", VespaParallelWandFactory(1000),  WandSetup(f1,   100, 10000000)) { f2.benchmark(); }
TEST_FF("benchmark", DotProductRiseWandFactory(1000), WandSetup(f1,   100, 10000000)) { f2.benchmark(); }
TEST_FF("benchmark", VespaParallelWandFactory(1000),  WandSetup(f1,  1000, 10000000)) { f2.benchmark(); }
TEST_FF("benchmark", DotProductRiseWandFactory(1000), WandSetup(f1,  1000, 10000000)) { f2.benchmark(); }

TEST_FFF("benchmark", VespaParallelWandFactory(1000),  FilterFactory(f1, 2), WandSetup(f2,    10, 10000000)) { f3.benchmark(); }
TEST_FFF("benchmark", DotProductRiseWandFactory(1000), FilterFactory(f1, 2), WandSetup(f2,    10, 10000000)) { f3.benchmark(); }
TEST_FFF("benchmark", VespaParallelWandFactory(1000),  FilterFactory(f1, 2), WandSetup(f2,   100, 10000000)) { f3.benchmark(); }
TEST_FFF("benchmark", DotProductRiseWandFactory(1000), FilterFactory(f1, 2), WandSetup(f2,   100, 10000000)) { f3.benchmark(); }
TEST_FFF("benchmark", VespaParallelWandFactory(1000),  FilterFactory(f1, 2), WandSetup(f2,  1000, 10000000)) { f3.benchmark(); }
TEST_FFF("benchmark", DotProductRiseWandFactory(1000), FilterFactory(f1, 2), WandSetup(f2,  1000, 10000000)) { f3.benchmark(); }

TEST_MAIN() { TEST_RUN_ALL(); }