mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 02:53:12 +01:00
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:
committed by
Luca Boccassi
parent
05e0ab55b8
commit
3659c1204a
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user