Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2421 Discussions

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

Luo__Victor
Beginner
182 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
182 Views

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

Reply