Skip to content

Commit

Permalink
Merge pull request zeromq#3578 from ssbl/unused-parameter
Browse files Browse the repository at this point in the history
Problem: unused parameter in benchmark function
  • Loading branch information
sigiesec authored Jul 12, 2019
2 parents 9c5cf85 + e26f094 commit d9dce8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions perf/benchmark_radix_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d9dce8f

Please sign in to comment.