Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xxhash benches #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chris-ha458
Copy link

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

warn(unused_parens)
even with features "mum32bit"
all checks and tests pass
all tests pass. was there a reason to pin versions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant