Re: sha256 speed

From: Waitman Gobble <waitman_at_waitman.net>
Date: Mon, 07 Jan 2019 00:37:27 +0000
Sent from ProtonMail mobile

-------- Original Message --------
On Jan 6, 2019, 8:17 PM, Stefan Ehmann wrote:

Hello,

On my Ryzen the sha256 command is much slower than openssl dgst -sha256.
For large files, openssl is more than 7 times faster in practice.

You can also test it with the builtin benchmarks:
sha256 -t
openssl speed sha256

I think the reason is that openssl supports the SHA CPU extensions
whereas libmd (used by sha256) does not.

Any chance we can make the base sha256 faster?
I guess there is some reason why we use libmd instead of openssl.

https://reviews.freebsd.org/D2651 looks related but not sure it's still
relevant.
_______________________________________________
freebsd-current_at_freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

Should probably dump sha256 anyways, blake2.
Received on Sun Jan 06 2019 - 23:37:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:19 UTC