Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyiM8-0006hr-8E for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 00:15:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyiL9-0005Kh-43 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2023 00:14:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyiL8-0005KY-Eb for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 00:14:54 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyiL5-0001Tw-Bz for pgsql-hackers@lists.postgresql.org; Tue, 16 May 2023 00:14:52 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 3E4C83200A73; Mon, 15 May 2023 20:14:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 15 May 2023 20:14:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1684196088; x=1684282488; bh=Qv m+DYHoorqA5vpEaaidkqyFP4ToONhGlz/cqLL7MIY=; b=FsYYHqomIid3wh3qt/ uOfaBLUTg9pqG8xVRFcq4yuP765MSCM6mvBHJmuDzS0aDOl6vovlmoHQQ10WOgkX gU+JyqnnAxpMkWskf2KxWQtH9N/sdUXYO1nQEWW+i6VAGqpk7KKgOjfBiGLMwdhz c0pNu2Ykd9Hgzbjfa4yT/rMgnuz4iBswjyzjCOAmn3lNKd8Byvey6bSEbkxAoW3U TdYUXjE3s/00koyoPXsaRvyvKlJQ7N/HiBbMDJW/iMvONkdtVhQXasAXYpd7Wigf mzuIrgvkRNiD4crWJ3cQ0jJBuAE4a8acDm5QVaOu3DX8nLZbhQK/oTN8uRSppurC UWyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684196088; x=1684282488; bh=Qvm+DYHoorqA5 vpEaaidkqyFP4ToONhGlz/cqLL7MIY=; b=OfccTYgCKktFDY33XKpRP/Y/hG9Xz sihuEZICZ6DiDYelVdibhkhF1LhLzCnpwa0N+ebaDhJZcJiRjGVCx53V1CQTlKvU MayrT6Hw4QkDI0FHMy82/l7xo9TETwfSjI/UtD72gO3aYgq4BLMWqdgimwkHsXb4 hv/N7D01objFna9SmAlh2JwJ2WrPbmim78ELUGaA+sdl4VhSlAXbadMplC+U7RMU ISW1hbJ3asigeQ8vfOCqPYZ95/OOpCrgYA1hGkYZOZbOoP7v0wxaJGp1TnwObUIt +Zr+qOOGr71JwPX1g2T0JnztqoDptNDJvgf41P7vskds21jcPAXnHOO1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehkedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 May 2023 20:14:48 -0400 (EDT) Date: Mon, 15 May 2023 17:14:47 -0700 From: Andres Freund To: Michael Paquier Cc: Alexander Lakhin , Michael Paquier , MARK CALLAGHAN , pgsql-hackers@lists.postgresql.org Subject: Re: benchmark results comparing versions 15.2 and 16 Message-ID: <20230516001447.xrijuuqcn5s7phuz@awork3.anarazel.de> References: <20230508191117.v6475ip6hxpwukss@awork3.anarazel.de> <20230509164824.wtfn5aoggj4rcz67@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-05-15 14:20:24 +0900, Michael Paquier wrote: > On Thu, May 11, 2023 at 01:28:40PM +0900, Michael Paquier wrote: > > On Tue, May 09, 2023 at 09:48:24AM -0700, Andres Freund wrote: > >> On 2023-05-08 12:11:17 -0700, Andres Freund wrote: > >>> I can reproduce a significant regression due to f193883fc of a workload just > >>> running > >>> SELECT CURRENT_TIMESTAMP; > >>> > >>> A single session running it on my workstation via pgbench -Mprepared gets > >>> before: > >>> tps = 89359.128359 (without initial connection time) > >>> after: > >>> tps = 83843.585152 (without initial connection time) > >>> > >>> Obviously this is an extreme workload, but that nevertheless seems too large > >>> to just accept... > > Extreme is adapted for a worst-case scenario. Looking at my notes > from a few months back, that's kind of what I did on my laptop, which > was the only machine I had at hand back then: > - Compilation of code with -O2. I assume without assertions as well? > I have re-run a bit more pgbench (1 client, prepared query with a > single SELECT on a SQL keyword, etc.). And, TBH, I am not seeing as > much difference as you do (nothing with default pgbench setup, FWIW), > still that's able to show a bit more difference than the other two > cases. > HEAD shows me an average output close to 43900 TPS (3 run of > 60s each, for instance), while relying on SQLValueFunction shows an > average of 45000TPS. That counts for ~2.4% output regression here > on bigbox based on these numbers. Not a regression as high as > mentioned above, still that's visible. 45k seems too low for a modern machine, given that I get > 80k in such a workload, on a workstation with server CPUs (i.e. many cores, but not that fast individually). Hence wondering about assertions being enabled... I get quite variable performance if I don't pin client / server to the same core, but even the slow performance is faster than 45k. Greetings, Andres Freund