Tune HashMap parameters

This commit is contained in:
Vinnie Falco
2013-09-09 07:23:56 -07:00
parent 34b7599df6
commit 2b132ae892
2 changed files with 7 additions and 2 deletions

View File

@@ -130,7 +130,12 @@ public:
for (std::size_t i = 0; i < numberOfKeys; ++i)
map.insert (traits.getKey (i));
this->logMessage ("load_factor = " + String::fromNumber (map.load_factor ()));
String s (
"load_factor = " + String::fromNumber (map.load_factor (), 2) +
", bucket_count = " + String::fromNumber (map.bucket_count ()));
this->logMessage (s);
expect (map.size () == numberOfKeys);
}
void runTest ()