We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc94dfb + 298afdf commit fab61d3Copy full SHA for fab61d3
1 file changed
pdns/dnsdistdist/bench-dnsdist-cache.cc
@@ -88,8 +88,9 @@ TEST_CASE("Cache/Lookup")
88
89
BENCHMARK(std::to_string(threadsCount))
90
{
91
+ threads.clear();
92
for (size_t idx = 0U; idx < threadsCount; idx++) {
- threads.emplace_back(std::thread(testCode, iterations / threadsCount));
93
+ threads.emplace_back(testCode, iterations / threadsCount);
94
}
95
for (auto& thread : threads) {
96
thread.join();
@@ -133,8 +134,9 @@ TEST_CASE("Cache/Insertion")
133
134
135
136
137
138
139
140
141
142
0 commit comments