Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. rapidhash

rapidhash

MITC++rapidhash_v3

A family of extremely fast, high-quality, platform-independent hash functions optimized for different performance profiles.

GitHubGitHub
862 stars49 forks0 contributors

What is rapidhash?

Rapidhash is a family of non-cryptographic hash functions designed for exceptional speed and high-quality output across different input sizes and computing platforms. It solves the need for fast, reliable hashing in performance-sensitive applications like hash tables, data processing, and embedded systems. The project offers three optimized variants—rapidhash, rapidhashMicro, and rapidhashNano—each targeting specific performance profiles while maintaining platform independence.

Target Audience

Systems programmers, embedded developers, and performance engineers working on hash tables, data structures, or applications requiring high-speed hashing without cryptographic guarantees.

Value Proposition

Developers choose Rapidhash for its combination of extreme performance (over 70GB/s throughput), excellent statistical quality validated by SMHasher tests, and platform independence that works across x86-64 and ARM architectures without specialized instructions.

Overview

Very fast, high quality, platform-independent hashing algorithm.

Use Cases

Best For

  • Implementing high-performance hash tables in systems programming
  • Data processing pipelines requiring fast hashing of large datasets
  • Embedded and mobile applications where code size matters
  • Server and HPC applications sensitive to cache performance
  • Cross-platform projects needing consistent hashing across architectures
  • Replacing slower hash functions in existing codebases

Not Ideal For

  • Applications requiring cryptographic security, such as password hashing or digital signatures
  • Projects that depend on hardware-specific vectorized instructions (e.g., AVX-512) for peak hashing performance
  • Environments with legacy compilers not supporting modern C++ features needed for optimal compilation
  • Use cases where interoperability with established hash standards like MD5 or SHA-256 is mandatory

Pros & Cons

Pros

Blazing Fast Performance

Achieves over 70GB/s throughput on Apple M4 CPUs and nanosecond-level latency for small inputs, as demonstrated in benchmark tables comparing it to xxh3.

Cross-Platform Optimization

Optimized for both AMD64 and AArch64 architectures without relying on machine-specific instructions, ensuring consistent speed across diverse hardware like M1 Pro, Ryzen, and Neoverse V2.

Proven Statistical Quality

Passes all SMHasher and SMHasher3 tests with collision probabilities close to ideal, validated on datasets of up to 67 billion keys, as shown in the collision study results.

Flexible Function Family

Offers three variants—rapidhash for general use, rapidhashMicro for cache-friendly HPC apps, and rapidhashNano for compact embedded systems—each optimized for specific performance profiles.

Cons

Variant Performance Trade-offs

rapidhashNano is 'considerably slower for larger inputs' beyond 48 bytes, and rapidhashMicro is 15-20% slower for inputs above 1KB, requiring careful selection based on use case.

Compiler Dependency for Optimal Results

Achieving the advertised instruction counts (e.g., ~185 for rapidhash with Clang-18+) requires modern compilers; performance may degrade with older or less optimized compilers like some MSVC versions.

Less Mature Ecosystem

Compared to established hashes like xxHash, Rapidhash has fewer third-party bindings and community resources, though ports to Java, Rust, etc., are available but less battle-tested.

Frequently Asked Questions

Quick Stats

Stars862
Forks49
Contributors0
Open Issues9
Last commit29 days ago
CreatedSince 2024

Tags

#hashing#embedded#data-structures#low-latency#non-cryptographic#cross-platform#optimization#performance

Built With

C
C++

Included in

C/C++70.6k
Auto-fetched 4 hours ago

Related Projects

stbstb

stb single-file public domain libraries for C/C++

Stars34,117
Forks8,070
Last commit2 months ago
{fmt}{fmt}

A modern formatting library

Stars23,635
Forks2,914
Last commit16 hours ago
xxHashxxHash

Extremely fast non-cryptographic hash algorithm

Stars11,118
Forks904
Last commit2 days ago
single_file_libssingle_file_libs

List of single-file C/C++ libraries, with emphasis on clause-less licenses.

Stars9,953
Forks647
Last commit11 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub