Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Luo__Victor
Beginner
48 Views

concurrent_hash_map: Bad performance compared to std::unordered_map with shared_lock

Hi,

Recently I found a microbenchmark on performance of different implementations of concurrent hash maps at https://le.qun.ch/en/blog/sharding/, where the test results are repeatable on my machine. I was wondering why simple std::unordered_map with std::shared_map outperforms tbb::conrurrent_hash_map? Is there any pitfall in that KVIntelTBB implementation?

Thanks

0 Kudos
1 Reply
e4lam
Beginner
48 Views

The benchmark code looks wrong to me. The threads start running before the timer even starts.

Reply