Concurrent Hashmap Performance

366 views
Skip to first unread message

Mohammad Motamedi

unread,
Jun 20, 2019, 5:40:16 PM6/20/19
to Folly: the Facebook Open-source LibrarY
I am trying to measure the performance of ConcurrentHashMap. I use 12 threads for concurrent insertion and lookup. The elapsed time for a few experiments is reported below:

Key Type: int -- Value Type: int -- Number of insertion: 134217728 elems, time for all insertions: 27829 ms. 
Key Type: int -- Value Type: int -- Number of look ups: 134217728 elems, time for all look ups: 4855 ms. 

I use 12 concurrent threads and my processor is: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz.

I am wondering if this is the performance that one might expect to get from ConcurrentHashMap. Any insight is greatly appreciated. 
Reply all
Reply to author
Forward
0 new messages