From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,4b4557aaa0e81844,start X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail From: " DiskMan" Newsgroups: comp.os.linux.alpha Subject: CCC vs GCC Optimizations - my current results X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: Date: Sat, 26 Feb 2005 05:44:39 -0600 NNTP-Posting-Host: 65.28.70.117 X-Complaints-To: abuse@rr.com X-Trace: twister.rdc-kc.rr.com 1109418132 65.28.70.117 (Sat, 26 Feb 2005 05:42:12 CST) NNTP-Posting-Date: Sat, 26 Feb 2005 05:42:12 CST Xref: g2news1.google.com comp.os.linux.alpha:765 I did a little testing using OPENSSL and there are some differences in performance with CCC being the clear winner. The only hitch is, you can only build static libs using CCC, shared libs are only supported under GCC. So the speed doesn't do me any good in that regard since a LOT of programs out there are looking for /usr/lib/libssl.so.0.9.7. :-( Here are some of the results of 'trying' to get better code out of OPENSSL: TEST 1 [AMD 1455mhz WinXP] options:bn(32,32) md2(int) rc4(ptr,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) compiler: gcc -DL_ENDIAN -DDSO_WIN32 -fomit-frame-pointer -O3 -mcpu=i486 -Wall - DBN_ASM -DMD5_ASM -DSHA1_ASM -DOPENSSL_NO_IDEA -DOPENSSL_NO_KRB5 available timing options: TIMEB HZ=1000 timing function used: ftime sign verify sign/s verify/s rsa 512 bits 0.0009s 0.0001s 1109.2 12756.2 rsa 1024 bits 0.0041s 0.0002s 245.1 4822.3 rsa 2048 bits 0.0239s 0.0007s 41.9 1465.8 rsa 4096 bits 0.1594s 0.0024s 6.3 409.5 TEST 2 [ALPHAPC 164SX 533mhz] options:bn(64,64) md2(int) rc4(ptr,int) des(ptr,risc1,16,int) idea(int) blowfish(idx) compiler: ccc -DTHREADS -D_REENTRANT -O5 -fast -mev56 -s -funroll-loops -DFLOAT=double -I/usr/alpha-glibc21-linux/include -fast -readonly_strings -DL_ENDIAN -DTER MIO sign verify sign/s verify/s rsa 512 bits 0.0025s 0.0002s 395.4 5219.3 rsa 1024 bits 0.0102s 0.0005s 97.9 2103.9 rsa 2048 bits 0.0575s 0.0015s 17.4 665.3 rsa 4096 bits 0.3323s 0.0050s 3.0 199.2 TEST 3 [ALPHAPC 164SX 533mhz] options:bn(64,64) md2(int) rc4(ptr,int) des(idx,risc1,16,long) aes(partial) idea(int) blowfish(idx) compiler: ccache gcc-3.4.3 -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -D OPENSSL_NO_KRB5 -O5 -mieee -mtune=ev56 -mcpu=ev56 -finline -fstrict-aliasing -fomit-frame-pointer -mmax -O3 -DL_ENDIAN -DTERMIO available timing options: TIMES TIMEB HZ=1024 [sysconf value] timing function used: times sign verify sign/s verify/s rsa 512 bits 0.0034s 0.0003s 291.4 3674.3 rsa 1024 bits 0.0119s 0.0006s 83.9 1557.4 rsa 2048 bits 0.0669s 0.0022s 15.0 444.9 rsa 4096 bits 0.4105s 0.0066s 2.4 152.2 TEST 4 [ALPHAPC 164SX 533mhz] options:bn(64,64) md2(int) rc4(ptr,int) des(idx,risc1,16,long) aes(partial) idea(int) blowfish(idx) compiler: ccache gcc-3.4.3 -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -D OPENSSL_NO_KRB5 -O5 -mieee -mtune=ev56 -mcpu=ev56 -finline -fstrict-aliasing -fomit-frame-pointer -mmax -ffloat-store -foptimize-register-move -foptimiz e-sibling-calls -fschedule-insns -msmall-data -fpic -pipe -ffast-math -mmemo ry-latency=3 -O3 -DL_ENDIAN -DTERMIO available timing options: TIMES TIMEB HZ=1024 [sysconf value] timing function used: times sign verify sign/s verify/s rsa 512 bits 0.0037s 0.0003s 268.2 3698.9 rsa 1024 bits 0.0126s 0.0007s 79.6 1511.3 rsa 2048 bits 0.0700s 0.0021s 14.3 478.3 rsa 4096 bits 0.4553s 0.0071s 2.2 140.1 In test four I think the real kicker was the LATENCY=3 flag, I think that really hurt performance, should have tried something along the lines of '2'. There were some other differences to. I noticed that TEST 4 ran faster if there was another program running the background. That seemed to make a pretty big difference. In this instance, that was SETIATHOME. Without Seti running, performance would often drop by about 9% across the board. I would 'assume' that its the cause of non-filled memory buffers. Anways... Will L G