diff --git a/examples/matt.cc b/examples/matt.cc index 7ee3a5b..4bd3e60 100644 --- a/examples/matt.cc +++ b/examples/matt.cc @@ -90,14 +90,37 @@ int main() auto noop = [](std::vector &) {}; - test, 10000000>("ordered", noop); + constexpr uint32_t num_keys = 10000000; + using T = uint64_t; - test, 10000000>("shuffled", shuffle); + test, num_keys>("flat_hash_set ordered ", noop); - test, 10000000>("parallel ordered", noop); + test, num_keys>("flat_hash_set shuffled", shuffle); - test, 10000000>("parallel shuffled", shuffle); + test, num_keys>("parallel (16) ordered ", noop); + 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("parallel (64) ordered ", noop); + + test("parallel (64) shuffled", shuffle); + + + 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); }