public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0
@ 2002-05-09  5:50 Scott Robert Ladd
  2002-05-09  6:21 ` Jan Hubicka
  0 siblings, 1 reply; 24+ messages in thread
From: Scott Robert Ladd @ 2002-05-09  5:50 UTC (permalink / raw)
  To: Gcc@Gnu. Org

Hello, all,

I've posted a set of benchmarks comparing the performance of code generated
by gcc 3.0.4 against that generated by Intel C++ 6.0 for Linux:

http://www.coyotegulch.com/reviews/intel_comp/intel_gcc_bench2.html

Please read the entire article before drawing any conclusions.

Scott Robert Ladd
Coyote Gulch Productions,  http://www.coyotegulch.com
No ads -- just very free (and somewhat unusual) code.

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0
@ 2002-05-09  8:50 Erik Schnetter
  2002-05-09  9:04 ` Tim Prince
  2002-05-09  9:33 ` Daniel Berlin
  0 siblings, 2 replies; 24+ messages in thread
From: Erik Schnetter @ 2002-05-09  8:50 UTC (permalink / raw)
  To: gcc

Tim Prince <tprince at computer dot org> wrote:

> icc's equivalent to -fstrict-aliasing is -ansi.  It's not a default.

I couldn't find anything about aliasing in the description of "-ansi".  
However, icc does have a "-falias" option (which is also not the default).  
The description of "-falias" is unfortunately unusable.

-erik

-- 
Erik Schnetter <schnetter@uni-tuebingen.de>
Web: http://www.tat.physik.uni-tuebingen.de/~schnette/

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0
@ 2002-05-09  9:54 kelley.r.cook
  2002-05-09 10:45 ` law
  0 siblings, 1 reply; 24+ messages in thread
From: kelley.r.cook @ 2002-05-09  9:54 UTC (permalink / raw)
  To: Scott Robert Ladd; +Cc: gcc

>I've posted a set of benchmarks comparing the performance of code
generated
>by gcc 3.0.4 against that generated by Intel C++ 6.0 for Linux:
>
>http://www.coyotegulch.com/reviews/intel_comp/intel_gcc_bench2.html

From your web site:
>I've updated the benchmark tables, showing the performance gain by using
>these options: -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math
>-march=i686. I also tried several other options suggested by various
e-mail
>and mailing list correspondents, including -malign-double,
>-fprefetch-loop-arrays, and -fstrict-aliasing; none of those improved
>performance on the benchmark code.

-malign-double used to matter in the old egcs, but it breaks ABI and isn't
really all that useful anymore anyway.  Jeff Law once called it evil:
http://gcc.gnu.org/ml/gcc-bugs/2000-08/msg00586.html

-fstrict-aliasing *does* matter, but since it is enabled by default since
the 3.0 release, it obviously wouldn't change your benchmark times.

-fprefetch-loop-arrays also matters on code that can take advantage of it.
However, it is a new 3.1 option and only will come into play on
architectures that support prefetch, in the x86 world, this requires chips
with SSE or 3DNow support.  Once you get the 3.1 try it along with
-march=pentium3 (since that is actually what you have).

For grins also add in a -fpmath=sse which is also a new for 3.1 command.
Their is no auto-vectorization support yet, but even scalar FP code
performs
much (10-25%) better than the x87 default.

Kelley Cook

^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0
@ 2002-05-09 15:56 Robert Dewar
  0 siblings, 0 replies; 24+ messages in thread
From: Robert Dewar @ 2002-05-09 15:56 UTC (permalink / raw)
  To: jh, scott; +Cc: gcc

<<I asked RedHat's Richard Henderson about which options I should use for
getting the fastest code from gcc; he only suggested -O2. In fact, he wasn't
real hot on -O3 (which I used) because he thought it might slow code down
through bloat.
>>

-O3 is often slower than -O2 in our experience particularly in Ada, where
it is routine to properly specify explicit inlining for appropriate subprograms

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

end of thread, other threads:[~2002-05-10 20:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-09  5:50 Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0 Scott Robert Ladd
2002-05-09  6:21 ` Jan Hubicka
2002-05-09  6:33   ` Scott Robert Ladd
2002-05-09  7:04     ` Jan Hubicka
2002-05-09  7:12       ` Scott Robert Ladd
2002-05-09  7:37         ` Jan Hubicka
2002-05-09  8:54         ` Updated: " Scott Robert Ladd
2002-05-09 10:43           ` Neil Booth
2002-05-09  7:41       ` Jack Lloyd
2002-05-09  8:20         ` # of untested cases 22 for alpha g++ only 9 for intel bemis
2002-05-09 11:39           ` Compilation Error on alphas bemis
2002-05-09  8:42         ` Benchmarks gcc 3.0.4 (soon 3.1) vs. Intel C++ 6.0 Tim Prince
2002-05-09  8:48         ` Scott Robert Ladd
2002-05-09 11:22         ` law
2002-05-10 14:17           ` Jack Lloyd
2002-05-09  7:41   ` Tim Prince
2002-05-09  7:48     ` Tim Prince
2002-05-09  8:50 Erik Schnetter
2002-05-09  9:04 ` Tim Prince
2002-05-09  9:33 ` Daniel Berlin
2002-05-09 14:08   ` Tim Prince
2002-05-09  9:54 kelley.r.cook
2002-05-09 10:45 ` law
2002-05-09 15:56 Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).