Hacker GitHub

← All repos

rurban/smhasher

View on GitHub ↗ ★ 2,184 C++

Hash function quality and speed tests

67 mentions on Hacker News by 35 people: 3 stories, 64 comments · first 2015-05-28 · latest 2026-01-21

Mentions per year 67 mentions · busiest year 2021 (14)
20082026
  1. The answer is probably here: https://github.com/rurban/smhasher Speed & number of cycles/hash is better with metro hash.
    comment by StreamBright · 2017-06-26 · in Show HN: An improved version of HyperLogLog
  2. …is 2x as fast as xxHash on little endian machines (at least according to this benchmark suite https://github.com/rurban/smhasher ).
    comment by obstinate · 2017-06-26 · in Diving into the world of hash tables
  3. …in counter mode with tools like the dieharder RNG test suite. https://github.com/demerphq/smhasher https://github.com/rurban/smhasher These are the FNV test results from my version of SMHasher: FNV1a 32 32 32 FAILED 99 of 183 tests.…
  4. …fnv also produces less collisions with average keys. only in pure cycle/hash djb is a bit better. https://github.com/rurban/smhasher#smhasher https://github.com/rurban/perl-hash-stats#perl-hash-stats > ad 3: Is hash function efficiency…
  5. Poor. See https://github.com/rurban/smhasher
    comment by rurban · 2016-09-30 · in Myths about Hash Tables
  6. …rate of arithmetic coding [4] (ANS) seems interesting. [1] https://github.com/Cyan4973/xxHash [2] https://github.com/rurban/smhasher [3] https://news.ycombinator.com/item?id=9613098 [4] http://arxiv.org/abs/1311.2540
  7. There is also a great resource with more up do date stuff on hashing and benchmarks right here: https://github.com/rurban/smhasher/
  8. …algorithm front from things like Boyer–Moore to work being done on non-cryptographic hashes (ie, https://github.com/rurban/smhasher/ ) that is sometimes mind boggling.
    comment by diziet · 2016-08-31 · in 10 Optimizations on Linear Search
  9. …without resorting to the internal crc32 builtin. Will be included in smhasher soon. Summary: https://github.com/rurban/smhasher#summary
  10. …Who told you that? Your local python or perl guru? Well, they are wrong. Read the note at https://github.com/rurban/smhasher#security "Such an attack avoidance cannot not be the problem of the hash function, but the hash table collision…
  11. See my overview at https://github.com/rurban/smhasher#smhasher 5x faster depends on the context with such benchmarks. They are only useful for file or big buffer digests, but not for the general usage in a hash table, with small buffers…
  12. …Daniel Lemire and Owen Kaser, 2014. CLHash doesn't even pass the avalanche test from smhasher https://github.com/rurban/smhasher I'll add it there for better comparison, with the new leader falkhash: https://github.com/gamozolabs/falkhash
  13. I've updated now my smhasher results at https://github.com/rurban/smhasher including metrohash and xxHash but not FarmHash yet. From the good enough hash functions, metrohash are by far the fastest, so they should be the new default on…
  14. My smhasher fork has both: https://github.com/rurban/smhasher/ Comparable results for xxHash and the new metrohash will be uploaded soon. These things take time. But I'm more interested in comparing it to HW CRC32-C, the fastest and best…