Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
Date
Msg-id CAEudQAoF2xfpA7tgW3gusg0dyMTwTDDwAzBqR_bbv08NBkqv-A@mail.gmail.com
Whole thread Raw
In response to Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)  (lakshmi <lakshmigcdac@gmail.com>)
Responses Re: Avoid multiple calls to memcpy (src/backend/access/index/genam.c)
List pgsql-hackers
Hi.

Em sex., 20 de mar. de 2026 às 06:50, lakshmi <lakshmigcdac@gmail.com> 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–657, averaging around ~648 TPS, with latency slightly higher (~15.2–15.6 ms).
Thanks for the benchmark.
Could you share the tests and the environment?
compiler
OS
etc.

best regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Nisha Moond
Date:
Subject: Re: [Proposal] Adding Log File Capability to pg_createsubscriber
Next
From: shveta malik
Date:
Subject: Re: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication