From: Artur Skawina Date: Thu, 06 Aug 2009 04:28:18 GMT Subject: Re: x86 SHA1: Faster than OpenSSL Message-ID: <4A7A5BE2.5070401@gmail.com> In-Reply-To: Linus Torvalds wrote: > > On Wed, 5 Aug 2009, Linus Torvalds wrote: >> Here's the patch that gets me sub-28s git-fsck times. In fact, it gives me >> sub-27s times. In fact, it's really close to the OpenSSL times. > > Just to back that up: > > - OpenSSL: > > real 0m26.363s > user 0m26.174s > sys 0m0.188s > > - This C implementation: > > real 0m26.594s > user 0m26.310s > sys 0m0.256s > > so I'm still slower, but now you really have to look closely to see the > difference. In fact, you have to do multiple runs to make sure, because > the error bars are bigger thant he difference - but openssl definitely > edges my C code out by a small amount, and the above numbers are rairly > normal. nice, the p4 microbenchmark #s: # TIME[s] SPEED[MB/s] rfc3174 1.357 44.99 rfc3174 1.352 45.13 mozilla 1.509 40.44 mozillaas 1.133 53.87 linus 0.5818 104.9 so it's more than twice as fast as the mozilla implementation. artur