Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsxx3-00AHJ2-K8 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 04:14:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qsxx1-00GxNY-FJ for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2023 04:14:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsxx1-00GxMj-5U for pgsql-hackers@lists.postgresql.org; Wed, 18 Oct 2023 04:14:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsxwt-001IXi-PN for pgsql-hackers@postgresql.org; Wed, 18 Oct 2023 04:14:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39I4EGQ23040241; Wed, 18 Oct 2023 00:14:16 -0400 From: Tom Lane To: =?utf-8?B?6YKx5a6H6Iiq?= cc: "Anton A. Melnikov" , Andres Freund , "pgsql-hackers@postgresql.org" , David Rowley , Michael Paquier Subject: Re: Some performance degradation in REL_16 vs REL_15 In-reply-to: <7C8BB9F5-FCB9-4422-8E95-BD39781E4463@gmail.com> References: <79e2f903-8bb0-4fc9-840c-f30d878d2327@postgrespro.ru> <20231013020522.ljwsw7mkpf23dylq@awork3.anarazel.de> <7C8BB9F5-FCB9-4422-8E95-BD39781E4463@gmail.com> Comments: In-reply-to =?utf-8?B?6YKx5a6H6Iiq?= message dated "Wed, 18 Oct 2023 11:45:55 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3040239.1697602456.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Oct 2023 00:14:16 -0400 Message-ID: <3040240.1697602456@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?utf-8?B?6YKx5a6H6Iiq?=3D writes: > I wrote a script and test on branch REL_[10-16]_STABLE, and do see perfo= rmance drop in REL_13_STABLE, which is about 1~2%. I'm really skeptical that we should pay much attention to these numbers. You've made several of the mistakes that we typically tell people not to make when using pgbench: * scale <=3D number of sessions means you're measuring a lot of row-update contention * once you crank up the scale enough to avoid that problem, running with the default shared_buffers seems like a pretty poor choice * 10-second runtime is probably an order of magnitude too small to get useful, reliable numbers On top of all that, discrepancies on the order of a percent or two commonly arise from hard-to-control-for effects like the cache alignment of hot spots in different parts of the code. That means that you can see changes of that size from nothing more than day-to-day changes in completely unrelated parts of the code. I'd get excited about say a 10% performance drop, because that's probably more than noise; but I'm not convinced that any of the differences you show here are more than noise. regards, tom lane