Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* CCC vs GCC Optimizations - my current results
@ 2005-02-26 11:44  DiskMan
  2005-02-26 12:17 ` Måns Rullgård
  0 siblings, 1 reply; 13+ messages in thread
From:  DiskMan @ 2005-02-26 11:44 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-02-28 21:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-26 11:44 CCC vs GCC Optimizations - my current results  DiskMan
2005-02-26 12:17 ` Måns Rullgård
2005-02-27  5:39   `  DiskMan
2005-02-27 10:27     ` Måns Rullgård
2005-02-27 12:52       `  DiskMan
2005-02-27 13:06         ` Måns Rullgård
2005-02-27 16:04           `  DiskMan
2005-02-27 16:34             ` Måns Rullgård
2005-02-27 18:40               ` gl :)
2005-02-28 11:22                 `  DiskMan
2005-02-28 11:54                   ` Måns Rullgård
2005-02-28 20:35                     `  DiskMan
2005-02-28 21:00                       ` Måns Rullgård

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox