Problem: radix tree needs benchmarks and improvements (#3290)

* Problem: radix tree needs benchmarks and improvements

Solution: add a benchmark and make suggested improvements
This commit is contained in:
Shubham Lagwankar
2018-11-09 05:49:40 -05:00
committed by Luca Boccassi
parent 05e0ab55b8
commit 3659c1204a
6 changed files with 147 additions and 50 deletions

View File

@@ -256,26 +256,6 @@ void test_apply ()
delete vec;
}
void test_print ()
{
zmq::radix_tree tree;
// Adapted from the example on wikipedia.
std::vector<std::string> keys;
keys.push_back ("tester");
keys.push_back ("water");
keys.push_back ("slow");
keys.push_back ("slower");
keys.push_back ("test");
keys.push_back ("team");
keys.push_back ("toast");
for (size_t i = 0; i < keys.size (); ++i)
tree_add (tree, keys[i]);
tree.print ();
}
int main (void)
{
setup_test_environment ();
@@ -306,7 +286,5 @@ int main (void)
RUN_TEST (test_apply);
RUN_TEST (test_print);
return UNITY_END ();
}