X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E7120D1B528 for ; Thu, 9 Oct 2003 13:41:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 25482-04 for ; Thu, 9 Oct 2003 10:40:20 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 913B1D1B52E for ; Thu, 9 Oct 2003 10:40:15 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h99DeBm22361; Thu, 9 Oct 2003 09:40:11 -0400 (EDT) From: Bruce Momjian Message-Id: <200310091340.h99DeBm22361@candle.pha.pa.us> Subject: Re: Sun performance - Major discovery! In-Reply-To: To: Jeff Date: Thu, 9 Oct 2003 09:40:11 -0400 (EDT) Cc: Neil Conway , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/270 X-Sequence-Number: 4018 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 > 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