Comprehensive C++ Hashmap Benchmarks (2022)

(martin.ankerl.com)

29 points | by klaussilveira 4 days ago

2 comments

  • hermitcrab 25 minutes ago
    Would be interested to hear how the Qt QHash compares.

    https://doc.qt.io/qt-6/qhash.html

    • rurban 5 minutes ago
      Still using linked lists as std::unordered_map. So it won't fly, but keeps ptr stability.
  • rurban 7 minutes ago
    Not really comprehesive. Doesn't include my favorite https://github.com/greg7mdp/parallel-hashmap which adds thread-safety to performance.
    • aw1621107 3 minutes ago
      For what it's worth, there's this bit from the parallel-hashmap readme:

      > We encourage phmap users to switch to gtl if possible. gtl provides the same functionality as this repository, but requires C++20 or above.

      And the benchmarks do include gtl.