docs.rs failed to build twox-hash-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
twox-hash-1.6.3
TwoX-Hash
A Rust implementation of the XXHash algorithm.
Examples
With a fixed seed
use HashMap;
use DefaultState;
use XxHash;
let mut hash: = Default default;
hash.insert;
assert_eq!;
With a random seed
use HashMap;
use RandomXxHashState;
let mut hash: = Default default;
hash.insert;
assert_eq!;
Benchmarks
Bytes | SipHasher (MB/s) | XXHash (MB/s) | Speedup |
---|---|---|---|
1 | 66 | 41 | 62% |
4 | 210 | 166 | 79% |
16 | 615 | 666 | 108% |
32 | 800 | 1523 | 190% |
128 | 1007 | 4129 | 410% |
256 | 1057 | 5818 | 550% |
512 | 1084 | 7111 | 656% |
1024 | 1092 | 8062 | 738% |
1048576 | 1113 | 9381 | 843% |
Contributing
- Fork it ( https://github.com/shepmaster/twox-hash/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Add a failing test.
- Add code to pass the test.
- Commit your changes (
git commit -am 'Add some feature'
) - Ensure tests pass.
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request