Comprehensive C++ Hashmap Benchmarks 2022

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

JetBrains - Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
  1. rustc-hash

    Custom hash algorithm used by rustc (plus hashmap/set aliases): fast, deterministic, not secure

    Can you compare https://github.com/rust-lang/rustc-hash? If you need I can provide a C++ port.

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
  3. parallel-hashmap

    A family of header-only, very fast and memory-friendly hashmap and btree containers.

    Thanks a lot for the great benchmark, Martin. Glad you used different hash functions, because I do sacrifice some speed to make sure that the performance of my hash maps doesn't degrade drastically with poor hash functions. Happy to see that my phmap and gtl (the C++20 version) performed well.

  4. gtl

    Greg's Template Library of useful classes.

    Thanks a lot for the great benchmark, Martin. Glad you used different hash functions, because I do sacrifice some speed to make sure that the performance of my hash maps doesn't degrade drastically with poor hash functions. Happy to see that my phmap and gtl (the C++20 version) performed well.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Boost 1.81 will have boost::unordered_flat_map...

    6 projects | /r/cpp | 31 Oct 2022
  • Parallel-hashmap: drop-in replacement for unordered_map, unordered_set

    2 projects | news.ycombinator.com | 5 Jan 2025
  • Designing a Fast Concurrent Hash Table

    1 project | news.ycombinator.com | 10 Oct 2024
  • Can C++ maps be as efficient as Python dictionaries ?

    1 project | /r/Cplusplus | 1 Aug 2022
  • Is A* just always slow?

    3 projects | /r/gamedev | 26 Jun 2022

Did you know that C++ is
the 7th most popular programming language
based on number of references?