diff options
Diffstat (limited to 'searchlib/src/tests/postinglistbm/stress_runner.h')
-rw-r--r-- | searchlib/src/tests/postinglistbm/stress_runner.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/searchlib/src/tests/postinglistbm/stress_runner.h b/searchlib/src/tests/postinglistbm/stress_runner.h new file mode 100644 index 00000000000..3fc8f537fd0 --- /dev/null +++ b/searchlib/src/tests/postinglistbm/stress_runner.h @@ -0,0 +1,28 @@ +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#pragma once + +#include <string> +#include <vector> + +namespace search { +class Rand48; + +namespace fakedata { class FakeWordSet; } + +} + +namespace postinglistbm { + +class StressRunner { +public: + static void run(search::Rand48 &rnd, + search::fakedata::FakeWordSet &wordSet, + const std::vector<std::string> &postingTypes, + unsigned int loops, + unsigned int skipCommonPairsRate, + uint32_t numTasks, + uint32_t stride, + bool unpack); +}; + +} |