🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.suse
Article #422

Re: gcc 3.2 makes slower code

#422
From: Jeffrey Cunningham
Date: Mon, 25 Nov 2002 19:01
20 lines
2021 bytes
Okay, here's what I've come up with so far. There is a core of calculations my
code must perform thousands of times. I benchmarked just this core with and
without I/O, on gcc 2.95 and 3.2, using -O2 and -O3 on the latter. Here
are the results:

gcc 2.95 with IO: .20 minutes
gcc 2.95 w/o IO: .18 minutes
gcc 3.2 -O3 with IO: .32 minutes
gcc 3.2 -O3 w/o IO: .27 minutes
gcc 3.2 -O2 w/o IO: .27 minutes

conclusions: (1) it isn't the I/O. The "slowdown factor" going to gcc 3.2
is x1.6 with I/O and x1.5 without. And (2) it makes no difference to these
calculations (intensive floating point vector operations) whether I use
-O3 or -O2. 

I haven't tried any of the more esoteric optimization tricks yet. But at
this point I'm somewhat alarmed by the loss in performance. 

-Jeff
Technical Details
Message-ID: <pan.2002.11.25.19.02.02.459662@cunningham.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail
References: <pan.2002.11.24.02.51.19.422739@cunningham.net> <arqit4$4n6$1@condor.gjs.xs4all.nl> <pan.2002.11.25.05.30.25.633705@cunningham.net> <uu3e5l1f71fs38@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1041dd,6b8a900e383d587f
X-Google-Attributes: gid1041dd,public
X-Google-Thread: f65d0,cf9dda410d7d1076,start
X-Google-Attributes: gidf65d0,public
X-Google-ArrivalTime: 2002-11-25 11:01:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail
From: "Jeffrey Cunningham" <jeffrey@cunningham.net>
Subject: Re: gcc 3.2 makes slower code
User-Agent: Pan/0.13.0 (The whole remains beautiful)
Message-ID: <pan.2002.11.25.19.02.02.459662@cunningham.net>
Newsgroups: alt.os.linux.suse,gnu.gcc
References: <pan.2002.11.24.02.51.19.422739@cunningham.net> <arqit4$4n6$1@condor.gjs.xs4all.nl> <pan.2002.11.25.05.30.25.633705@cunningham.net> <uu3e5l1f71fs38@corp.supernews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Lines: 20
NNTP-Posting-Host: 12.228.165.141
X-Complaints-To: abuse@attbi.com
X-Trace: sccrnsc01 1038250915 12.228.165.141 (Mon, 25 Nov 2002 19:01:55 GMT)
NNTP-Posting-Date: Mon, 25 Nov 2002 19:01:55 GMT
Organization: AT&T Broadband
Date: Mon, 25 Nov 2002 19:01:55 GMT