benalexau / hash-bench Goto Github PK
View Code? Open in Web Editor NEWJava Hashing, CRC and Checksum Benchmark (JMH)
License: MIT License
Java Hashing, CRC and Checksum Benchmark (JMH)
License: MIT License
Please pay attention to https://github.com/PositiveTechnologies/t1ha
Regards.
Now we have three type of inputs: byte[], ByteBuffer and DIrectBuffer. In many real scenarios, the input will be objects to be serialized to bytes or an io stream with uncertain length. Some hash implementation provide streaming api (e.g. Guava Hasher), which are verify convenient for these cases, and should have better performance.
We can split a fixed length byte[] array into some small pieces, and feed into a streaming api hash algo. A default streaming api to wrap a hash with only at-once api just records all updated bytes into a ByteBuffer, and calculate the whole result at once in finally()
.
ZAH 0.5 is released. It has no changes compared to the version benchmarked, so the tests shouldn't be re-run, just running/building process simplified, depending on the release 0.5 version.
The fact that the fastest hash function (xx64) even slightly outperforms crc32 raises the question: what is the fastest checksum algorithm available in Java? Excluding unreliable "algorithms" like plain xor-ing all words of the data.
I haven't explored this field deeply, but probably this page: https://en.wikipedia.org/wiki/List_of_hash_functions will give some options that might be faster than xx64.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.