mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [OT] gcc 2.95.2 vs. 3.0 (fwd)
@ 2001-06-24  9:54 Sasi Peter
  2001-06-24 22:48 ` J . A . Magallon
  0 siblings, 1 reply; 3+ messages in thread
From: Sasi Peter @ 2001-06-24  9:54 UTC (permalink / raw)
  To: linux-kernel

first of all, if you are not interested in compiler comparision, just
skip.

I though posting a little demonstration of how well performing code gcc
2.95.2 generates (vs. gcc 3.0) won't hurt. Also shown, that further
optimatizations are anything but impossible (using Intel's commercial c
compiler).

I know opendivx code is not like kernel code at all, but on the other hand
it is well suited for benchmark testing.

Maybe this will cool down thoose a bit, who were to move to gcc 3.0 as
fast as possible, for the _way_ better generated code...

-- 
SaPE - Peter, Sasi - mailto:sape@sch.hu - http://sape.iq.rulez.org/

---------- Forwarded message ----------
Date: Sun, 24 Jun 2001 04:31:56 +0200 (CEST)
From: Arpi <arpi@thot.banki.hu>
Reply-To: mplayer-users@lists.sourceforge.net
To: mplayer-users@lists.sourceforge.net
Subject: [Mplayer-users] gcc 2.95.2 vs. 3.0

Hi,

Just compiled and try gcc 3.0 stable.
And the results is very big surprise! It makes *SLOWER* code!

test file:  (opendivx with postprocessing, this stuff is written in C)
# mplayer -osdlevel 0 -nosound -benchmark 1800.avi -vo null -pp 15
VIDEO:  [divx]  640x352  24bpp  23.98 fps  1865.1 kbps (227.7 kbyte/s)

hardware: celeron-2 600 @ 900MHz (100MHz FSB), 256MB RAM (PC133, at 2/2/2)
(sse,mmx,mmxext enabled)

gcc 2.95.2 result:  (flags: -O4 -march=i686 -mcpu=i686 -pipe -ffast-math)
BENCHMARKs: V:   5.087s VO:   0.001s A:   0.000s Sys:   0.013s =    5.101s
BENCHMARK%: V: 99.7160% VO:  0.0258% A:  0.0000% Sys:  0.2582% = 100.0000%

gcc 3.0 result:  (flags: -O4 -march=i686 -mcpu=i686 -pipe -ffast-math)
BENCHMARKs: V:   5.194s VO:   0.001s A:   0.000s Sys:   0.013s =    5.208s
BENCHMARK%: V: 99.7309% VO:  0.0221% A:  0.0000% Sys:  0.2471% = 100.0000%

yes, speed diff isn't big, but i was prepared for big speed boost by 3.0,
and then i got speed loss! :(

if i recompile C-only parts of decore with intel's commercial C compiler
(free beta available for linux), it's about 15% faster:

icc result:  (optim. flags: -O2 -fp -rcd -tpp6 -xiMK)
BENCHMARKs: V:   4.415s VO:   0.001s A:   0.000s Sys:   0.013s =    4.429s
BENCHMARK%: V: 99.6676% VO:  0.0290% A:  0.0000% Sys:  0.3034% = 100.0000%


A'rpi / Astral & ESP-team

--
mailto:arpi@thot.banki.hu
http://esp-team.scene.hu

_______________________________________________
Mplayer-users mailing list
Mplayer-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users


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

end of thread, other threads:[~2001-06-24 22:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-24  9:54 [OT] gcc 2.95.2 vs. 3.0 (fwd) Sasi Peter
2001-06-24 22:48 ` J . A . Magallon
2001-06-24 23:08   ` Sasi Peter

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

all inboxes | Powered by JetHome®