* 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* Re: CCC vs GCC Optimizations - my current results
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
0 siblings, 1 reply; 13+ messages in thread
From: Måns Rullgård @ 2005-02-26 12:17 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> 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. :-(
With some hacking of the configure script, CCC can be used to build
shared libs just fine, or you can link the static lib into a shared
one afterwards. Something like
gcc -shared -o libcrypto.so.0.9.7 -Wl,--whole-archive libcrypto.a -ldl -lots
gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -lcrypto
should do it.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-26 12:17 ` Måns Rullgård
@ 2005-02-27 5:39 ` DiskMan
2005-02-27 10:27 ` Måns Rullgård
0 siblings, 1 reply; 13+ messages in thread
From: DiskMan @ 2005-02-27 5:39 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]
I'm going ot keep a copy of this post, I might go ahead and give that a shot
and see what happens... Will L G
"M�ns Rullg�rd" <mru@inprovide.com> wrote in message
news:yw1xvf8fbjni.fsf@ford.inprovide.com...
> " DiskMan" <nobody@thewheel.com> writes:
>
> > 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. :-(
>
> With some hacking of the configure script, CCC can be used to build
> shared libs just fine, or you can link the static lib into a shared
> one afterwards. Something like
>
> gcc -shared -o libcrypto.so.0.9.7 -Wl,--whole-archive
libcrypto.a -ldl -lots
> gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -lcrypto
>
> should do it.
>
> --
> M�ns Rullg�rd
> mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 5:39 ` DiskMan
@ 2005-02-27 10:27 ` Måns Rullgård
2005-02-27 12:52 ` DiskMan
0 siblings, 1 reply; 13+ messages in thread
From: Måns Rullgård @ 2005-02-27 10:27 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> "M�ns Rullg�rd" <mru@inprovide.com> wrote...
>> " DiskMan" <nobody@thewheel.com> writes:
>>
>> > 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. :-(
>>
>> With some hacking of the configure script, CCC can be used to build
>> shared libs just fine, or you can link the static lib into a shared
>> one afterwards. Something like
>>
>> gcc -shared -o libcrypto.so.0.9.7 -Wl,--whole-archive libcrypto.a -ldl -lots
>> gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -lcrypto
>>
>> should do it.
>
> I'm going ot keep a copy of this post, I might go ahead and give that a shot
> and see what happens...
I forgot one thing. That last gcc command should have a -L. in there
as well:
gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -L. -lcrypto
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 10:27 ` Måns Rullgård
@ 2005-02-27 12:52 ` DiskMan
2005-02-27 13:06 ` Måns Rullgård
0 siblings, 1 reply; 13+ messages in thread
From: DiskMan @ 2005-02-27 12:52 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]
Hey, got a 'side' question... Do you think an AlphaPC w/ATI 7000 vidcard can
handle open GL screensavers? Just one cheap and was wondering if it was
worth it when it comes to opengl screensavers like Flock, GLGears
[Planetary], etc.
"M�ns Rullg�rd" <mru@inprovide.com> wrote in message
news:yw1xk6ou9u28.fsf@ford.inprovide.com...
> " DiskMan" <nobody@thewheel.com> writes:
>
> > "M�ns Rullg�rd" <mru@inprovide.com> wrote...
> >> " DiskMan" <nobody@thewheel.com> writes:
> >>
> >> > 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. :-(
> >>
> >> With some hacking of the configure script, CCC can be used to build
> >> shared libs just fine, or you can link the static lib into a shared
> >> one afterwards. Something like
> >>
> >> gcc -shared -o libcrypto.so.0.9.7 -Wl,--whole-archive
libcrypto.a -ldl -lots
> >> gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -lcrypto
> >>
> >> should do it.
> >
> > I'm going ot keep a copy of this post, I might go ahead and give that a
shot
> > and see what happens...
>
> I forgot one thing. That last gcc command should have a -L. in there
> as well:
>
> gcc -shared -o libssl.so.0.9.7 -Wl,--whole-archive libssl.a -L. -lcrypto
>
> --
> M�ns Rullg�rd
> mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 12:52 ` DiskMan
@ 2005-02-27 13:06 ` Måns Rullgård
2005-02-27 16:04 ` DiskMan
0 siblings, 1 reply; 13+ messages in thread
From: Måns Rullgård @ 2005-02-27 13:06 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> Hey, got a 'side' question... Do you think an AlphaPC w/ATI 7000 vidcard can
> handle open GL screensavers? Just one cheap and was wondering if it was
> worth it when it comes to opengl screensavers like Flock, GLGears
> [Planetary], etc.
Are you talking about your SX164? With the DRI drivers I suppose it
should work fairly well. I don't have that card myself, so I can't
say for sure. With software rendering you haven't a chance of decent
performance, of course.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 13:06 ` Måns Rullgård
@ 2005-02-27 16:04 ` DiskMan
2005-02-27 16:34 ` Måns Rullgård
0 siblings, 1 reply; 13+ messages in thread
From: DiskMan @ 2005-02-27 16:04 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]
I was just wondering. Thats about the only thing I really want to be able to
do. Run opengl screensavers at a nice decent speed. The original Matrox
Millenium w/4mb ram, is a little lagging and the cpu is doing damn near all
the work from what I can tell. That Matrox card is little more than a video
adapter!
From what I understand the ATI PowerColor series are about the only PCI
cards that have DRI support under XFree86. That's part of the reason I went
with that one. I'm surprised they didn't include support for Matrox PCI
cards though, considering Matrox released the source for all their PCI cards
starting about 10yrs ago.
The card I snagged comes with the works and has a TV/Scable out
connector...its pretty sweet. I can either pipe video out to a TV or monitor
[lcd monitors to].... Its a nice little card... Will L G
"M�ns Rullg�rd" <mru@inprovide.com> wrote in message
news:yw1x7jku9mp5.fsf@ford.inprovide.com...
> " DiskMan" <nobody@thewheel.com> writes:
>
> > Hey, got a 'side' question... Do you think an AlphaPC w/ATI 7000 vidcard
can
> > handle open GL screensavers? Just one cheap and was wondering if it was
> > worth it when it comes to opengl screensavers like Flock, GLGears
> > [Planetary], etc.
>
> Are you talking about your SX164? With the DRI drivers I suppose it
> should work fairly well. I don't have that card myself, so I can't
> say for sure. With software rendering you haven't a chance of decent
> performance, of course.
>
> --
> M�ns Rullg�rd
> mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 16:04 ` DiskMan
@ 2005-02-27 16:34 ` Måns Rullgård
2005-02-27 18:40 ` gl :)
0 siblings, 1 reply; 13+ messages in thread
From: Måns Rullgård @ 2005-02-27 16:34 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> I was just wondering. Thats about the only thing I really want to be able to
> do. Run opengl screensavers at a nice decent speed. The original Matrox
> Millenium w/4mb ram, is a little lagging and the cpu is doing damn near all
> the work from what I can tell. That Matrox card is little more than a video
> adapter!
>
> From what I understand the ATI PowerColor series are about the only PCI
> cards that have DRI support under XFree86. That's part of the reason I went
> with that one. I'm surprised they didn't include support for Matrox PCI
> cards though, considering Matrox released the source for all their PCI cards
> starting about 10yrs ago.
I'm pretty sure there's DRI support for the Matrox G400 and G500
families.
There's also the problem that some of the DRI drivers won't work on
Alphas for various reasons.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 16:34 ` Måns Rullgård
@ 2005-02-27 18:40 ` gl :)
2005-02-28 11:22 ` DiskMan
0 siblings, 1 reply; 13+ messages in thread
From: gl :) @ 2005-02-27 18:40 UTC (permalink / raw)
Il Sun, 27 Feb 2005 17:34:39 +0100, Mᅵns Rullgᅵrd ha scritto:
> I'm pretty sure there's DRI support for the Matrox G400 and G500
> families.
DRI on Matrox cards is only supported with AGP, infact my G450 PCI
cannot do DRI. Simply, if you uncheck AGP support in kernel menuconfig,
DRI support for Matrox disappear. I did some investigations on the code
and I found there is no way for having it working as the code is now.
ATI cards and old Voodoos work without AGP with full 3D features.
Bye!
gl :)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-27 18:40 ` gl :)
@ 2005-02-28 11:22 ` DiskMan
2005-02-28 11:54 ` Måns Rullgård
0 siblings, 1 reply; 13+ messages in thread
From: DiskMan @ 2005-02-28 11:22 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]
I know what you mean, it kind of bites. Matrox was one of the first, if not
the first vidcard co., to release the specs for their cards then turned
around and released their own port for linux!
I'm thinking of turning this ol'Alpha in to a little DVR. I have a nice
fancy case for it, a Chili Professional, and if I had a decent card to take
some of the load off the cpu, this might turn into a nice entertainment
center. My other alpha, XL300, I'm thinking of giving to Distributed Folding
so that they can release a linux port of Folding@Home... Will L G
"gl :)" <gl@decadence.it> wrote in message
news:pan.2005.02.27.18.39.51.41644@decadence.it...
> Il Sun, 27 Feb 2005 17:34:39 +0100, M�ns Rullg�rd ha scritto:
> > I'm pretty sure there's DRI support for the Matrox G400 and G500
> > families.
>
> DRI on Matrox cards is only supported with AGP, infact my G450 PCI
> cannot do DRI. Simply, if you uncheck AGP support in kernel menuconfig,
> DRI support for Matrox disappear. I did some investigations on the code
> and I found there is no way for having it working as the code is now.
> ATI cards and old Voodoos work without AGP with full 3D features.
>
> Bye!
> gl :)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-28 11:22 ` DiskMan
@ 2005-02-28 11:54 ` Måns Rullgård
2005-02-28 20:35 ` DiskMan
0 siblings, 1 reply; 13+ messages in thread
From: Måns Rullgård @ 2005-02-28 11:54 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> I'm thinking of turning this ol'Alpha in to a little DVR. I have a
> nice fancy case for it, a Chili Professional, and if I had a decent
> card to take some of the load off the cpu, this might turn into a
> nice entertainment center.
Good video performance doesn't require any 3D drivers, only support
for the video overlay. You'll still have some problems with the CPU
speed. My SX164 at 533MHz is barely fast enough to play DVDs. The
video drivers in XFree86 are too slow too, you'll have to use the more
efficient Vidix drivers. These support using DMA to transfer the
video frames with some cards, which gives a considerable speed boost.
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-28 11:54 ` Måns Rullgård
@ 2005-02-28 20:35 ` DiskMan
2005-02-28 21:00 ` Måns Rullgård
0 siblings, 1 reply; 13+ messages in thread
From: DiskMan @ 2005-02-28 20:35 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
Thanks, i'm going to give vidix a shot and see how that runs... Will L G
"M�ns Rullg�rd" <mru@inprovide.com> wrote in message
news:yw1xy8d86gsg.fsf@ford.inprovide.com...
> " DiskMan" <nobody@thewheel.com> writes:
>
> > I'm thinking of turning this ol'Alpha in to a little DVR. I have a
> > nice fancy case for it, a Chili Professional, and if I had a decent
> > card to take some of the load off the cpu, this might turn into a
> > nice entertainment center.
>
> Good video performance doesn't require any 3D drivers, only support
> for the video overlay. You'll still have some problems with the CPU
> speed. My SX164 at 533MHz is barely fast enough to play DVDs. The
> video drivers in XFree86 are too slow too, you'll have to use the more
> efficient Vidix drivers. These support using DMA to transfer the
> video frames with some cards, which gives a considerable speed boost.
>
> --
> M�ns Rullg�rd
> mru@inprovide.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CCC vs GCC Optimizations - my current results
2005-02-28 20:35 ` DiskMan
@ 2005-02-28 21:00 ` Måns Rullgård
0 siblings, 0 replies; 13+ messages in thread
From: Måns Rullgård @ 2005-02-28 21:00 UTC (permalink / raw)
" DiskMan" <nobody@thewheel.com> writes:
> "M�ns Rullg�rd" <mru@inprovide.com> wrote...
>> " DiskMan" <nobody@thewheel.com> writes:
>>
>> > I'm thinking of turning this ol'Alpha in to a little DVR. I have a
>> > nice fancy case for it, a Chili Professional, and if I had a decent
>> > card to take some of the load off the cpu, this might turn into a
>> > nice entertainment center.
>>
>> Good video performance doesn't require any 3D drivers, only support
>> for the video overlay. You'll still have some problems with the CPU
>> speed. My SX164 at 533MHz is barely fast enough to play DVDs. The
>> video drivers in XFree86 are too slow too, you'll have to use the more
>> efficient Vidix drivers. These support using DMA to transfer the
>> video frames with some cards, which gives a considerable speed boost.
>
> Thanks, i'm going to give vidix a shot and see how that runs... Will L G
What's your graphics card? The DMA transfer mode is known to work
with 3Dlabs GLINT R3/R4 (Permedia3/4) (I wrote the driver) and some
ATI cards (code present, not verified by me). You'll also need a
video player that knows how to use these features.
Even without DMA support, Vidix can give some speedup, since it gives
the application direct access to the video memory.
--
M�ns Rullg�rd
mru@inprovide.com
^ 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