Re: [PATCH 0/7] block-sha1: improved SHA1 hashing
- From
- Artur Skawina <art.08.09@gmail.com>
- Date
- Aug 6, 2009, 17:22 UTC
- Message-ID
- <4A7B1166.8020507@gmail.com>
- In-Reply-To
- <alpine.LFD.2.01.0908060803140.3390@localhost.localdomain>
Linus Torvalds wrote:
Show 7 quoted lines
> where the thing is loosely based on the Mozilla SHA1 routines but by the > end doesn't really resemble them all that much. The Mozilla ones suck > donkey d*ck in so many ways - unnecessary copies, idiotic byte-at-a-time > build-up of the hash input etc. > > The end result is pretty much equivalent in performance to the OpenSSL > SHA1 code for me on x86-64. Getting rid of OpenSSL gets rid of another
For those curious just how close the C version is to the various asm and C implementations, the q&d microbenchmark is at http://www.src.multimo.pl/YDpqIo7Li27O0L0h/sha1bench.tar.gz
In short: 88% of openssl speed on P3, 42% on P4, 66% on Atom.
artur