0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-25 22:30:51 +08:00

Merge pull request #3578 from ssbl/unused-parameter

Problem: unused parameter in benchmark function
This commit is contained in:
Simon Giesecke 2019-07-12 17:49:04 +02:00 committed by GitHub
commit d9dce8f068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,6 @@ const int chars_len = 36;
template <class T>
void benchmark_lookup (T &subscriptions_,
std::vector<unsigned char *> &input_set_,
std::vector<unsigned char *> &queries_)
{
using namespace std::chrono;
@ -114,10 +113,10 @@ int main ()
static_cast<unsigned long long> (nqueries),
static_cast<unsigned long long> (key_length));
std::puts ("[trie]");
benchmark_lookup (trie, input_set, queries);
benchmark_lookup (trie, queries);
std::puts ("[radix_tree]");
benchmark_lookup (radix_tree, input_set, queries);
benchmark_lookup (radix_tree, queries);
for (auto &op : input_set)
delete[] op;