[Cryptography] sha1sum speed

Henry Baker hbaker1 at pipeline.com
Fri May 6 09:53:21 EDT 2016


At 08:31 AM 5/2/2016, Peter Bowen wrote:
>randfile is a 300MiB file, already cached: How do the time compare to using 'openssl dgst -sha1'?
>
>I *think* that will use the optimized version.

You are correct:

time openssl dgst -sha1 <mybigfile>

18.677 seconds ***the winner (for SHA1)***

Note that this is only a single core.

For completeness, here are the rest of the timings:
openssl dgst -sha256 takes 41 seconds.

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)



More information about the cryptography mailing list