News for hackers. Stuff that matters.
Re:Show HN: Go version of HighwayHash with optimized assembl... by loeg on Wednesday January 10, 2018 @04:03AM (#16113485)
How does performance compare with XXhash, possibly the current leader in the non-cryptographic hash category?
Re:Show HN: Go version of HighwayHash with optimized assembl... by rurban on Wednesday January 10, 2018 @08:33AM (#16114766)
XXhash is only fast with digest workloads, not hash tables. There the hash function needs to be fast and small, XXhash is too big and trashes the icache.

The current leaders are on my smhasher site, https://github.com/rurban/smhasher/

Re:Show HN: Go version of HighwayHash with optimized assembl... by loeg on Wednesday January 10, 2018 @07:32PM (#16120453)
Thank you!
Re:Show HN: Go version of HighwayHash with optimized assembl... by zuzun on Wednesday January 10, 2018 @05:20AM (#16113855)
The benchmarks on the xxHash Github page were done on a 32-bit system using an old Visual C++ compiler. Of course you can beat hash functions that were explicitly designed for modern 64-bit architectures. The Core 2 lacks the CRC instruction introduced by the SSE 4.2 extension, which is the main reason Google wrote their hashes.
Re:Show HN: Go version of HighwayHash with optimized assembl... by loeg on Wednesday January 10, 2018 @07:31PM (#16120447)
Look at XXH64.
Re:Show HN: Go version of HighwayHash with optimized assembl... by bla2 on Wednesday January 10, 2018 @07:09AM (#16114363)
xxHash has a 64-bit version.
Re:Show HN: Go version of HighwayHash with optimized assembl... by zuzun on Wednesday January 10, 2018 @07:49AM (#16114538)
All modern hashes are designed for 64-bit architectures and some even rely on recent instruction sets. So a benchmark on an old 32-bit CPU isn't indicative of the performance you'll see on a modern processor, e.g. Metrohash will definitely not be 5x slower than xxHash.
Re:Show HN: Go version of HighwayHash with optimized assembl... by loeg on Wednesday January 10, 2018 @07:32PM (#16120451)
Not sure what you're trying to say.

I'm asking for an apples-to-apples comparison here. Using one figure from a random CPU on github and comparing it to another figure from a different random CPU on github is not an apples to apples comparison.

I don't think anyone claimed xxhash would be 5x faster than metrohash. (Maybe you are getting the 5x number from metrohash's claim that it is 5x faster than siphash?)