[Cryptography] sha1sum speed

Zooko Wilcox-OHearn zooko at leastauthority.com
Fri Jul 1 18:57:23 EDT 2016


Thanks for reporting these measurements!

On Fri, May 6, 2016 at 1:53 PM, Henry Baker <hbaker1 at pipeline.com> wrote:
>
> time openssl dgst -sha1 <mybigfile>
> 18.677 seconds ***the winner (for SHA1)***
…
> sha1sum took 24 seconds.
> sha3sum (default algorithm) took 54 seconds.
> sha256sum took 54 seconds.
> b2sum-i686-linux took 35.7 seconds.
> b2sum-amd64-linux took 27.3 seconds.
> cksum took 22.8 seconds.
> cfv -C -tsha1 -f- took 19.5 seconds
> cfv -C -tcrc -f- took 8.8 seconds
> cfv -C -tmd5 -f- took 15.6 seconds
> b2sum took 29.4 seconds
> b2sum -a blake2bp took 15.034 seconds (all 3 cores)

If you build openssl-1.1.0 pre-release then you can also measure
openssl's new implementation of BLAKE2b and BLAKE2s. (But not, yet,
BLAKE2bp or BLAKE2sp.)

By the way, as Bill Cox mentioned up-thread, there's a new
implementation of BLAKE2bp in AVX2 from Samuel Neves that brings it
down to an amazing 1.45 cycles per bytes. I'm not sure how that
https://github.com/sneves/blake2-avx2

Regards,

Zooko


More information about the cryptography mailing list