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.96) (envelope-from ) id 1w3XYk-001KJT-0f for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 10:58:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3XYg-005QjG-30 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Mar 2026 10:58:27 +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.96) (envelope-from ) id 1w3XYg-005Qj0-1t for pgsql-hackers@lists.postgresql.org; Fri, 20 Mar 2026 10:58:27 +0000 Received: from mail-dy1-x132a.google.com ([2607:f8b0:4864:20::132a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3XYe-00000000ADd-1NV1 for pgsql-hackers@postgresql.org; Fri, 20 Mar 2026 10:58:26 +0000 Received: by mail-dy1-x132a.google.com with SMTP id 5a478bee46e88-2c0d36f3888so548005eec.0 for ; Fri, 20 Mar 2026 03:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774004302; cv=none; d=google.com; s=arc-20240605; b=CSuNZFEDb2GiZSjf43Ke7SVtaoTZwdDaxheyWHVscfDkQ7ALIMGhMAF5tYxocjXHNv XNoQl+7DdydZTr0kt+iVpL+gbvPgCNaW4LTvTeaG2TvUSzkF7zg/vjhMAu82+3NM/1CI d5E6koaqHAK5tb+raP7pR6J/FjMk3OoRfumKo5eAmXEB2PexDh9dqJqG9rDKL7An2+Aw CMcYtRQqdemtU4pie+XYGjkw/vlgkDD1WtzkzYDQGuyZyBECRWbRcuFGnYOhQE/Kpira krSRgCJtWFz9e+mRiampBpl882BKkpUAeSjn3acGLsUHNdWIDwKYBeZXl43lpoHk1qy8 2c/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=LbQgw1405C/rHmDLxY044WoP4f5khYrMO1YJKqOTCnU=; fh=s4VIpRdaBiPX06bOAPQ6vcWhNvIHPzZVLIXA0MeXoAY=; b=MmfXvHTBHJvW3rbkAFPamZXH8vsSKc5S3NXpl5U6SxqKSrDz3dJORX9FI1V0GbCjkw CJM806CLdXjhsOEd8aUmcW+nVWeZnUlPI69UjeTYVf7R4dSj0CGiKap96jkvf9uImcou XJojzzFI7dKjRJetlCBCaUEsuPhPXMG2Ic2kd3R4wP20OEVcYh3e/w7l8OGXzwtRtdF2 IFqZS86lfcfX8DFQeSmrZtf2zpXDEVRHUrqMMwQpllFZdWWEpBz9epCMhqm3tBiFkvQy bvb0o+jK2VV2rMJINRZMmivAOnbYwPg6U+DsjwTGW6eIno9MR0cCzpqvE3ToauxioNj6 YNqA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774004302; x=1774609102; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LbQgw1405C/rHmDLxY044WoP4f5khYrMO1YJKqOTCnU=; b=G+HxA71xLJIqgzPXLlBATm9tErzJtezMk6Wip0NUm4s6P2ZWatgRNS3VYwBve1Ttb1 ggQ60AWCydYyvjAgtlAqGBTfF9C+8G5I85URVVSheznbWucZ4evWx+ZeLpMH4e9QKZDP DyjLjIkE342FVSGh4Xd3gDXiL0yB9NspjNweFBhVPTTZdLgRqELufIOdM/tPGjj2uoiP TiaRWsd1agw85j19i5qW4UY4C9M0GuaVLGhInPT8pZ9QsCiabDkLD+6DV7FMYuOhaX4W PxJB72ZPkVdu99sCicXIGQnbUY8TUuYL7Gqn8H6M+fCcBF2nqVNTLySAqfyLi9OAWFcM shIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774004302; x=1774609102; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LbQgw1405C/rHmDLxY044WoP4f5khYrMO1YJKqOTCnU=; b=JjdWLFQR5X7edUMES9vqK8PtotQ6t2gK5m5oCCnJN91uISLClibFalOoKQptMJAroQ JQtD9EVxxyXf0XUsz3A90JDYSOuL79zuuU4niMmI5hr/2IE/1njiD1HuLu8lnErWE4BG wpoBhjUOL1P2vjgXyS6tLZNUUs3uasCyeATIcgI++YgcsTKcR0yJjnuyTBQ+rxkfJsnE 0QYIJi/xVjQIqg0W6L7b72EwtnvwhcLxPudQbAjoUOMVXSsiOAHh3/UR5C6L4ayG9fC5 Uwb/GYgDDDwTNrKV/2cwYpGUabaw5rRMjIGomm17iDxV2zTmibDk8YhELwpjK187F87I mucg== X-Forwarded-Encrypted: i=1; AJvYcCUzKY/P0lQ5Bzkp1Oulphk13cJR3FTpop3ymChdZYQVBauKxG23cTCsJO8PS9WiX3Vg2tlckUs20z3Y3wU6@postgresql.org X-Gm-Message-State: AOJu0YzGyggPMMziQppsQjsc7tPNgXBWRS93dn1d4OzlmMuJtc5bWe0b dptrPdjdjLMtE/PPiDIDCPTa9W5+hyUO7OlhIY5WBk4kxL6YlJe8ZzWP6zaU+bmpj1kNNySEGYr cM/LQOxwS0IoYevWIIuOOH71FpmV8HFA= X-Gm-Gg: ATEYQzzaI7W6OGE7BIs9DNiuRIhLZ48pEDeM8OQ17kgSYpg2LUCN+Li0VW1aSJafQnZ Y3xUdWzHk1+0vrMmY/pouYo3VbsxRgz7UdUK2aRGfqJUS4Stnbhn/U1x9CF5XBLcf7SyGO8Avij hpwWNzxFla9k1ymVoZSgWiiEMLtfASodmqYXXZAp4LzIQagQp4TwuftFmdic5GPQvDUPIHnUjFd 37i6ed3zAKpIIRzXIU5IW0LhAFBvPmBCdaemVUsCjbTxkrIjhRamauLLHF9+lq/tyKMisVw/UoC covp527/ X-Received: by 2002:a05:7301:1017:b0:2c0:e63e:3b3 with SMTP id 5a478bee46e88-2c10980b8f7mr1241064eec.35.1774004302257; Fri, 20 Mar 2026 03:58:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ranier Vilela Date: Fri, 20 Mar 2026 07:58:11 -0300 X-Gm-Features: AaiRm51yG1PYiQkThhxvk0EmXt9Kw73RAoNbmitrW-3XymcUKZcV8Dv8-nlksQY Message-ID: Subject: Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c) To: lakshmi Cc: Bryan Green , Pg Hackers Content-Type: multipart/alternative; boundary="00000000000044244b064d729046" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000044244b064d729046 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi. Em sex., 20 de mar. de 2026 =C3=A0s 06:50, lakshmi escreveu: > Hi, > > I tried this change on PostgreSQL (19devel) and ran a few simple tests > using pgbench to see how it behaves in practice. > > I used 10 clients and 4 threads and ran each test for 60 seconds. > > From my runs, the original version was giving around ~663 TPS with ~15.07 > ms latency. > With the patched version, I observed TPS in the range of ~638=E2=80=93657= , > averaging around ~648 TPS, with latency slightly higher (~15.2=E2=80=9315= .6 ms). > Thanks for the benchmark. Could you share the tests and the environment? compiler OS etc. best regards, Ranier Vilela --00000000000044244b064d729046 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.

Em sex., 20 de mar. de 2026 = =C3=A0s 06:50, lakshmi <lakshm= igcdac@gmail.com> escreveu:
Hi,

I tried this change on Postg= reSQL (19devel) and ran a few simple tests using pgbench to see how it beha= ves in practice.

I used 10 clients and 4 threads and ran each test f= or 60 seconds.

From my runs, the original version was giving around = ~663 TPS with ~15.07 ms latency.
With the patched version, I observed TP= S in the range of ~638=E2=80=93657, averaging around ~648 TPS, with latency= slightly higher (~15.2=E2=80=9315.6 ms).
Thanks= for the benchmark.
Could you share the tests and the environment= ?
compiler
OS
etc.

b= est regards,
Ranier Vilela
--00000000000044244b064d729046--