Giter Site home page Giter Site logo

hash-bench's People

Contributors

benalexau avatar leventov avatar mariusvolkhart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hash-bench's Issues

add benchmark cases for stream version hash

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

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.

Extend with checksum algorithms

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.