diff --git a/examples/matt.cc b/examples/matt.cc index 4bd3e60..4b73a80 100644 --- a/examples/matt.cc +++ b/examples/matt.cc @@ -78,6 +78,13 @@ void test(const char *name, std::function &)> pertur Set c(order.begin(), order.end()); } +template +using pset = phmap::parallel_flat_hash_set, + phmap::container_internal::hash_default_eq, + phmap::container_internal::Allocator, // alias for std::allocator + N>; + // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- int main() @@ -97,30 +104,17 @@ int main() test, num_keys>("flat_hash_set shuffled", shuffle); - test, num_keys>("parallel (16) ordered ", noop); + test, num_keys>("parallel (16) ordered ", noop); - test, num_keys>("parallel (16) shuffled", shuffle); + test, num_keys>("parallel (16) shuffled", shuffle); - using pset_6 = phmap::parallel_flat_hash_set, - phmap::container_internal::hash_default_eq, - phmap::container_internal::Allocator, // alias for std::allocator - 6>; + test, num_keys>("parallel (64) ordered ", noop); - test("parallel (64) ordered ", noop); + test, num_keys>("parallel (64) shuffled", shuffle); - test("parallel (64) shuffled", shuffle); + test, num_keys>("parallel (128) ordered ", noop); - - using pset_8 = phmap::parallel_flat_hash_set, - phmap::container_internal::hash_default_eq, - phmap::container_internal::Allocator, // alias for std::allocator - 8>; - - test("parallel (128) ordered ", noop); - - test("parallel (128) shuffled", shuffle); + test, num_keys>("parallel (128) shuffled", shuffle); }