Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO3Xh-0004ep-Ew for pgsql-performance@arkaria.postgresql.org; Tue, 07 May 2019 17:06:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hO3Xf-00061a-PR for pgsql-performance@arkaria.postgresql.org; Tue, 07 May 2019 17:06:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO3Xf-0005y0-BS for pgsql-performance@lists.postgresql.org; Tue, 07 May 2019 17:06:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hO3Xa-00006c-5X for pgsql-performance@lists.postgresql.org; Tue, 07 May 2019 17:06:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x47H5xqY004471; Tue, 7 May 2019 13:05:59 -0400 From: Tom Lane To: Steven Winfield cc: "pgsql-performance@lists.postgresql.org" Subject: Re: GCC 8.3.0 vs. 9.0.1 In-reply-to: References: Comments: In-reply-to Steven Winfield message dated "Tue, 07 May 2019 16:14:43 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4469.1557248759.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 07 May 2019 13:05:59 -0400 Message-ID: <4470.1557248759@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Steven Winfield writes: > A few days ago a blog post appeared on phoronix.com[1] comparing GCC 8.3= .0 against 9.0.1 on Intel cascadelake processors. > A notable difference was seen in the PostgreSQL benchmark (v10.3, pgbenc= h, read/write, more detail below), both when compiling with -march=3Dnativ= e and -march=3Dskylake: > I'm interested to know the devs' take on this is - does GCC 9 contain so= me new feature(s) that are particularly well suited to compiling and optim= ising Postgres? Or was GCC 8 particularly bad? Given the described test setup, I'd put basically no stock in these numbers. It's unlikely that this test case's performance is CPU-bound per se; more likely, I/O and lock contention are dominant factors. So I'm afraid whatever they're measuring is a more-or-less chance effect rather than a real system-wide code improvement. It is an interesting report, all the same. regards, tom lane