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 rustc_hash to benchmarks #102

Closed
smmalis37 opened this issue Oct 27, 2021 · 1 comment
Closed

Add rustc_hash to benchmarks #102

smmalis37 opened this issue Oct 27, 2021 · 1 comment

Comments

@smmalis37
Copy link

https://crates.io/crates/rustc-hash

I'd be curious to see how things compare. Their docs say they outperform FNV, which is promising.

@tkaitchuck
Copy link
Owner

rustc-hash is basically the same as fxHash just with different constants. You can see it in the graph.
Based on this issue: rust-lang/rustc-hash#18
I have been toying around with an improved version of rustc-hash. When that is ready I will post a PR there and update aHash's fallback with anything I learn.

Also: "Faster than FNV" isn't saying much, as you can see from the graph here: https://github.com/tkaitchuck/aHash/blob/master/compare/readme.md#speed
FNV is one of the slowest popular hashing algorithms.

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

No branches or pull requests

2 participants