docs / benchmarks / hash
Benchmarks index
aot
codec
codec / csv
codec / json
collection
- Overview
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
gfx
hash
http
io
io / file
io / net
io / net / uri
lang
- Overview
- Allocation and ownership
- Calls and dispatch
- Exceptions
- Guid
- Loops
- Math and SIMD
- Optional
- Pair
- Slice
- String
- StringBuilder
- Whole programs: the Benchmarks Game
lang / stream
llm
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
ml
nucleo
primavera
process
reflect
search
search / distance
search / fuzzy
search / ngram
time
toolchain
toolchain / kernel-startup
wire
xpu
xpu / mesh
XXHash3
cajeta.hash.XXHash3 — the 64- and 128-bit XXH3. The small-input rows are the per-key cost a hash map pays; the 256 KB rows are bandwidth, read against the reference C implementation’s own number.
Benchmarks
| id | workload | against | check |
|---|---|---|---|
hash/xxhash3 | XXH3-64 of 32-byte keys, 1e7 times | xxHash reference C, Rust xxhash-rust, Go zeebo/xxh3, Java zero-allocation-hashing, Python xxhash | digest |
hash/xxhash3-256k | XXH3-64 of a 256 KB buffer, 1e4 times | same | digest |
hash/xxhash3_128 | XXH3-128 of 32-byte keys | same | digest |
hash/xxhash3_128-256k | XXH3-128 of 256 KB | same | digest |
Results
One chart per benchmark, for the machine selected at the top of the page. Languages are the bars, best first; Cajeta’s bar is in color and the competitors’ are gray. A skipped competitor keeps its row with the reason in place of a bar. A benchmark with no row on the selected machine says so and shows nothing else.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Reproduce
cd bench
./bench.sh --bench xxhash3 # Cajeta
./bench.sh --bench xxhash3 --competitors # every pinned competitor
Every row records the compiler and competitor versions, flags, machine, OS and driver; METHODOLOGY states the rules a number must satisfy before it is published.
See also
- Reference: XXHash3
- Source:
runtime/src/cajeta/hash/XXHash3.cajeta - Benchmark source:
bench/src/main/cajeta/bench/hash/