Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to compare the more upto date xxhash-rust (xxh3) with wyhash
it seems smaller hashes wyhash is faster and larger hashes wyhash is faster
test wyhash_bench::hash_004_bytes ... bench: 2 ns/iter (+/- 0) = 2000 MB/s
test wyhash_bench::hash_007_bytes ... bench: 2 ns/iter (+/- 0) = 3500 MB/s
test wyhash_bench::hash_008_bytes ... bench: 2 ns/iter (+/- 0) = 4000 MB/s
test wyhash_bench::hash_009_bytes ... bench: 3 ns/iter (+/- 0) = 3000 MB/s
test wyhash_bench::hash_012_bytes ... bench: 3 ns/iter (+/- 0) = 4000 MB/s
test wyhash_bench::hash_016_bytes ... bench: 3 ns/iter (+/- 0) = 5333 MB/s
test wyhash_bench::hash_032_bytes ... bench: 2 ns/iter (+/- 0) = 16000 MB/s
test wyhash_bench::hash_128_bytes ... bench: 7 ns/iter (+/- 1) = 18285 MB/s
test wyhash_bench::hash_1_kilo_bytes ... bench: 56 ns/iter (+/- 10) = 18285 MB/s
test wyhash_bench::hash_1_mega_bytes ... bench: 69,603 ns/iter (+/- 7,315) = 15065 MB/s
test wyhash_bench::hash_256_bytes ... bench: 14 ns/iter (+/- 2) = 18285 MB/s
test wyhash_bench::hash_512_bytes ... bench: 27 ns/iter (+/- 2) = 18962 MB/s
test wyhash_bench::hash_u64 ... bench: 0 ns/iter (+/- 0) = 8000 MB/s
test xxh3::hash_004_bytes ... bench: 11 ns/iter (+/- 1) = 363 MB/s
test xxh3::hash_007_bytes ... bench: 17 ns/iter (+/- 4) = 411 MB/s
test xxh3::hash_008_bytes ... bench: 12 ns/iter (+/- 3) = 666 MB/s
test xxh3::hash_009_bytes ... bench: 16 ns/iter (+/- 3) = 562 MB/s
test xxh3::hash_012_bytes ... bench: 16 ns/iter (+/- 2) = 750 MB/s
test xxh3::hash_016_bytes ... bench: 11 ns/iter (+/- 5) = 1454 MB/s
test xxh3::hash_032_bytes ... bench: 11 ns/iter (+/- 1) = 2909 MB/s
test xxh3::hash_128_bytes ... bench: 14 ns/iter (+/- 3) = 9142 MB/s
test xxh3::hash_1_kilo_bytes ... bench: 52 ns/iter (+/- 4) = 19692 MB/s
test xxh3::hash_1_mega_bytes ... bench: 49,757 ns/iter (+/- 12,517) = 21073 MB/s
test xxh3::hash_256_bytes ... bench: 24 ns/iter (+/- 1) = 10666 MB/s
test xxh3::hash_512_bytes ... bench: 33 ns/iter (+/- 7) = 15515 MB/s
test xxh3::hash_u64 ... bench: 11 ns/iter (+/- 3) = 727 MB/s