pgsql: pg_test_timing: Also test RDTSC[P] timing, report time source, T

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_test_timing: Also test RDTSC[P] timing, report time source, T
Date: 2026-04-07 21:18:47
Message-ID: E1wADos-003SEi-1o@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_test_timing: Also test RDTSC[P] timing, report time source, TSC frequency

This adds support to pg_test_timing for the different timing sources added by
294520c4448.

Author: Lukas Fittl <lukas(at)fittl(dot)com>
Author: David Geier <geidav(dot)pg(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: David Geier <geidav(dot)pg(at)gmail(dot)com>
Reviewed-by: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Reviewed-by: Álvaro Herrera <alvherre(at)kurilemu(dot)de> (in an earlier version)
Discussion: https://www.postgresql.org/message-id/flat/20200612232810.f46nbqkdhbutzqdg%40alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16fca482548382c8d6255319b1c6e5de4afff7f1

Modified Files
--------------
doc/src/sgml/config.sgml | 6 ++
doc/src/sgml/ref/pgtesttiming.sgml | 153 ++++++++++++++++++++++++++------
src/bin/pg_test_timing/pg_test_timing.c | 105 ++++++++++++++++++++--
src/include/portability/instr_time.h | 7 ++
4 files changed, 233 insertions(+), 38 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2026-04-07 21:25:30 pgsql: Add EXPLAIN (IO) instrumentation for TidRangeScan
Previous Message Tomas Vondra 2026-04-07 21:07:37 pgsql: Add EXPLAIN (IO) instrumentation for SeqScan