From c38ac17e5f16d51512b6d66d27ae88bc76479b2c Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 26 Jul 2020 18:03:09 -0400 Subject: [PATCH] Update entropy test program with larger parallel hashmaps --- examples/matt.cc | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) 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); }