pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jeff <threshar@torgo.978.org>
Cc: Neil Conway <neilc@samurai.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Sun performance - Major discovery!
Date: Thu, 9 Oct 2003 09:40:11 -0400 (EDT)
Message-ID: <200310091340.h99DeBm22361@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.44.0310090810400.69046-100000@torgo.978.org>


So you want -fast added as default for non-gcc Solaris?  You mentioned
there is a warning generated that we have to deal with?

---------------------------------------------------------------------------

Jeff wrote:
> On Wed, 8 Oct 2003, Neil Conway wrote:
> 
> > Hey Jeff,
> >
> > On Wed, 2003-10-08 at 11:46, Jeff wrote:
> > > Yeah - like I expected it was able to generate much better code for
> > > _bt_checkkeys which was the #1 function in gcc on both sun & linux.
> >
> > If you get a minute, would it be possible to compare the performance of
> > your benchmark under linux/gcc and solaris/gcc when PostgreSQL is
> > compiled with "-O3"?
> >
> Sun:
> gcc:
> none: 60 seconds
> -O: 21 seconds
> -O2: 20 seconds
> -O3: 19 seconds
> 
> suncc:
> none: 52 seconds
> -fast: 20 secondsish.
> 
> -fast is actually a macro that expands to the "best settings" for the
> platform that is doing the compilation.
> 
> 
> Linux:
> -O2: 35
> -O3: 40
> Odd.. I wonder why it took longer. Perhaps gcc built some bad code?
> I thought the results were odd there so I ran the test many times.. same
> results! Swapped the binaries back (so -O2 was running) and boom. back to
> 35.
> 
> Sun gcc -O2 and suncc -fast both pass make check.
> 
> 
> --
> Jeff Trout <jeff@jefftrout.com>
> http://www.jefftrout.com/
> http://www.stuarthamm.net/
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (48+ messages)  latest in thread

Message-ID: <200310091340.h99DeBm22361@candle.pha.pa.us>
Permalink:  ../200310091340.h99DeBm22361@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200310091340.h99DeBm22361@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pgman@candle.pha.pa.us, threshar@torgo.978.org, neilc@samurai.com
  Subject: Re: Sun performance - Major discovery!
  In-Reply-To: <200310091340.h99DeBm22361@candle.pha.pa.us>
  References: <Pine.BSF.4.44.0310090810400.69046-100000@torgo.978.org> <200310091340.h99DeBm22361@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox