Skip to content
Robby edited this page May 6, 2026 · 4 revisions

AxHash

axhash core docs-axhash docs-core

downloads-axhash downloads-core license CI

rust no_std

AxHash is a high-performance deterministic hashing family for Rust and native systems languages.

If you only need AxHash in Rust, start with the axhash crate from this workspace. It is the simplest entrypoint and re-exports the core engine with a friendlier import path.

AxHash is optimized for real-world HashMap workloads, concurrent systems, cache-heavy applications, and high-throughput native runtimes.

Features

  • Deterministic hashing
  • Seeded hashing support
  • Streaming API
  • Fast HashMap integration
  • no_std support
  • Cross-language FFI
  • Concurrent-friendly design

Performance Highlights

Benchmarked with Criterion.rs on Apple Silicon (release mode).

Benchmark AxHash Performance
HashMap get-hit (100k keys) ~494 Melem/s
HashMap get-miss (10k keys) ~785 Melem/s
HashMap insert-u64 (100k keys) ~90 Melem/s
u64 hashing throughput ~2.0 Gelem/s
Thread-local concurrent hashing (8 threads) ~750 Melem/s
Large-buffer throughput (64K) ~94 GiB/s
Large-buffer throughput (4K) ~100 GiB/s
write_u64 latency ~3 ns
write_u128 latency ~1.48 ns
Mixed struct hashing ~290 Melem/s
HashMap builder creation ~1.3 ns

Real-world HashMap Comparison

Workload AxHash DefaultHasher
insert-u64 (100k) ~90 Melem/s ~44 Melem/s
get-hit (100k) ~494 Melem/s ~183 Melem/s
get-miss (10k) ~785 Melem/s ~280 Melem/s
Mixed workload ~11.9 Melem/s ~6.1 Melem/s

Concurrent Scaling

Threads Throughput
1 ~230 Melem/s
2 ~420 Melem/s
4 ~691 Melem/s
8 ~752 Melem/s

See full Criterion benchmark reports for detailed graphs and methodology.

Get Hit Get Miiss

Workspace Layout

License

MIT

Clone this wiki locally