TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

XXH3, world's fastest hash algorithm, has reached stable status

74 pointsby telendramalmost 5 years ago

6 comments

segfaultbuserralmost 5 years ago
Note to readers: This is a non-crypto hash algorithm. It's not meant to be cryptographically secure, but collision is rare enough for databases and similar applications, and is really fast. A real crypto hash like SipHash or BLAKE is already considered lightning fast (1-3 GB/s) in crypto applications, but XXH is faster than a RAM sequential read (30+ GB/s).
评论 #23989695 未加载
评论 #23983421 未加载
fenivalmost 5 years ago
If you’re interested in diving deeper, the SMhasher benchmark suite tests a much more exhaustive list of hash functions (including wyhash) - <a href="https:&#x2F;&#x2F;github.com&#x2F;rurban&#x2F;smhasher" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rurban&#x2F;smhasher</a><p><a href="https:&#x2F;&#x2F;www.strchr.com&#x2F;hash_functions" rel="nofollow">https:&#x2F;&#x2F;www.strchr.com&#x2F;hash_functions</a> Is also a great write up of how some of the classic hashing algorithms perform of various data sets.<p><a href="https:&#x2F;&#x2F;nullprogram.com&#x2F;blog&#x2F;2018&#x2F;07&#x2F;31&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nullprogram.com&#x2F;blog&#x2F;2018&#x2F;07&#x2F;31&#x2F;</a> is an interesting approach on generating hashing functions automatically.
评论 #23984278 未加载
tpetryalmost 5 years ago
So if you are confused like me how someone came up with an algorithm faster than anything else currently available: This is from the mastermind behind the lz4 and zstd compression.
Akababaalmost 5 years ago
Noob question: how do they even measure performance faster than RAM sequential read?
评论 #23983860 未加载
MuffinFlavoredalmost 5 years ago
faster than RAM sequential read...<p>i wonder if anything above sse2 would offer even more performance improvements?
评论 #23979773 未加载
Const-mealmost 5 years ago
I wonder how it compares to AES-NI. Technically that&#x27;s not a hash, but it can be abused to be, and due to the hardware support the bandwidth is pretty good.
评论 #23982847 未加载
评论 #23980371 未加载
评论 #23980453 未加载