What hash function you use for hash maps / hash tables?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cityhash

    Automatically exported from code.google.com/p/cityhash

  • However, it's not the fastest. I found that Google CityHash was faster and produced slightly different hashvals. This was tested on billions of entries. https://github.com/google/cityhash

  • wyhash

    The FASTEST QUALITY hash function, random number generators (PRNG) and hash map.

  • I recently switched to wyhash as it seems to have a good combination of speed and stability.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • smhasher

    Hash function quality and speed tests (by rurban)

  • smhasher is a great place to testing results for a massive number of hash algorithms.

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