On Mon, 7 Jan 2019 01:17:45 +0100
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 sh
There is support for the SHA intrinsic in aesni(4) that would be
relatively easy to adapt to userspace for libmd, if someone was
interested. Especially now that we demand linker ifunc support (on
x86 platforms, at least). I posted a patch and some performance
comparison in https://svnweb.freebsd.
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 be