Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

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

Luo__Victor
Beginner
569 Views

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
569 Views

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

0 Kudos
Reply