From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111c93,f0a56bd4c2196da0 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-04-03 16:07:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uio.no!news.kth.se!not-for-mail From: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Newsgroups: comp.os.linux.alpha Subject: OpenSSL RSA speed test Date: 04 Apr 2003 02:05:35 +0200 Sender: mru@zaphod.guide Message-ID: References: NNTP-Posting-Host: manganonaujakasit.e.kth.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) Xref: archiver1.google.com comp.os.linux.alpha:7519 " DiskMan" writes: > Well I was looking for some information regarding the soon to be released > AMD Opteron (rel. 04/22/03) and I stumbled up on some comparisons and > decided to 'join in the mix'. The first time I ran the Openssl test, the > results were DISMAL! It was actually slightly slower than the Celery 400mhz > but after recompiling and optimizing, I damn near doubled the speed [;-) > You're notice, the larger the key, the more of a speed difference there is. > I assume this is due to the large caches the Alpha runs... Could you give the compiler and flags used to compile openssl? Here are my results on sx164 @ 533 MHz: OpenSSL 0.9.6g 9 Aug 2002 compiler: gcc -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -mcpu=ev56 -O3 -DL_ENDIAN -DTERMIO sign/s verify/s rsa 512 bits 337.9 4365.4 rsa 1024 bits 81.9 1691.7 rsa 2048 bits 15.3 548.0 rsa 4096 bits 2.4 153.9 OpenSSL 0.9.7a Feb 19 2003 compiler: ccc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -fast -readonly_strings -DL_ENDIAN -DTERMIO available timing options: TIMES TIMEB HZ=1024 [sysconf value] timing function used: times sign/s verify/s rsa 512 bits 320.2 4075.8 rsa 1024 bits 99.8 1792.1 rsa 2048 bits 18.0 629.4 rsa 4096 bits 3.0 191.7 It's odd that the 512-bit test runs slower when compiled with ccc, but the rest are 20% faster. As comparison I ran it on a dual p4 xeon @2.4 GHz: OpenSSL 0.9.7 31 Dec 2002 compiler: gcc -fPIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: times sign/s verify/s rsa 512 bits 1002.3 10307.1 rsa 1024 bits 195.5 3492.0 rsa 2048 bits 31.2 1052.4 rsa 4096 bits 4.6 298.6 That's only 1.5 times faster than the sx164 at 4.5 times faster clock. And here's p3 @600 MHz: OpenSSL 0.9.7 31 Dec 2002 compiler: gcc -fPIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -mcpu=pentium -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM available timing options: TIMES TIMEB HZ=100 [sysconf value] timing function used: times sign verify sign/s verify/s rsa 512 bits 0.0023s 0.0002s 432.6 4369.4 rsa 1024 bits 0.0115s 0.0006s 86.9 1596.0 rsa 2048 bits 0.0686s 0.0020s 14.6 488.8 rsa 4096 bits 0.4591s 0.0071s 2.2 141.7 -- M�ns Rullg�rd mru@users.sf.net