Re: SHA-256 implementation improvement

2012-05-24 Thread Andy Polyakov
I did observe more than 20% on Opteron, but on Core2/Sandy Bridge I get only 13-11%... Well, I've got 984 / 1170 clocks on Core 2 (17%) and 1033 / 1250 on Core i5 (Westmere) (18%) Out of curiosity, how fast is updated code from CVS on Westmere? Sorry, too many codenames. It is Lynnfield.

Re: SHA-256 implementation improvement

2012-05-24 Thread Andy Polyakov
I modified the 'Configure' script to allow the compilation of a 32bit version of openssl *with* the assembly routines. What does it mean? Configure supports 32-bit builds *with* assembly as it is. To build 32-bit version on 64-bit Linux, run './Configure linux-elf -m32'. The results for this

Re: SHA-256 implementation improvement

2012-05-24 Thread Jan Just Keijser
Jan Just Keijser wrote: Andy Polyakov wrote: I modified the 'Configure' script to allow the compilation of a 32bit version of openssl *with* the assembly routines. What does it mean? Configure supports 32-bit builds *with* assembly as it is. To build 32-bit version on 64-bit Linux, run

Re: SHA-256 implementation improvement

2012-05-24 Thread Andy Polyakov
here are the raw 'openssl speed sha256' results with and without the patch; all I did was tar xzf openssl-1.0.0j.tar.gz cd openssl-1.0.0j.tar.gz apply patch or not ./Configure linux-elf -m32 make cd apps ./openssl speed -evp sha256 | grep ^sha ./openssl speed sha256 | grep ^sha

Re: SHA-256 implementation improvement

2012-05-24 Thread Pavel Semjanov
And the result exactly for Lynnfield is unexpected, Don't you feel sometimes that Intel mocks you? :-) :-) :-) :-) see below: clocks for 1.5 / 1.6 / my version: Core2 1170 / 1131 / 984 Core i5 1250 / 1430 (!) / 1033 Ouch! http://cvs.openssl.org/chngview?cn=22597. Core i5 1.7 is 1270