I ran the tests on Debian Linux (6.1.0-10-amd64, x86_64) on an AMD Ryzen 5 7535U (6 cores / 12 threads).
Thanks for the tests.
The PostgreSQL version was 19devel, built from source using gcc 12.2.0 with enable-debug.
For benchmarking, I used pgbench with the following command: pgbench -p 55432 -d postgres -c 10 -j 4 -T 60
The database was initialized with scale factor 1 (pgbench -i). I ran multiple iterations for both the original and patched versions and compared TPS and latency across runs.
All tests were done on the same system under similar conditions.
Please let me know if you’d like me to try any other scenarios or provide more details.