Improve pg_test_timing to measure in nanoseconds

Edit
ID 5066
Title Improve pg_test_timing to measure in nanoseconds
Topic Testing
Created 2024-06-21 19:18:29
Last modified 2024-10-07 07:16:34 (1 month, 2 weeks ago)
Latest email 2024-07-03 11:47:26 (4 months, 2 weeks ago)
Status
2024-09: Returned with feedback
2024-07: Moved to next CF
Target version
Authors Hannu Krosing (hannukrosing)
Reviewers Tom Lane (tgl)Become reviewer
Committer
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/5066
git checkout commitfest/cf/5066
Emails
What is a typical precision of gettimeofday()?
First at 2024-03-19 08:28:37 by Peter Eisentraut <peter at eisentraut.org>
Latest at 2024-07-03 11:47:26 by Aleksander Alekseev <aleksander at timescale.com>
Latest attachment (pg_test_ticking.c) at 2024-07-02 17:31:21 from Hannu Krosing <hannuk at google.com>
    Attachment (pg_test_ticking.c) at 2024-07-02 17:31:21 from Hannu Krosing <hannuk at google.com> (Patch: No)
    Attachment (pg_test_timing.results.txt) at 2024-07-02 17:20:14 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: No)
    Attachment (v2-pg_test_timing-nanoseconds.patch) at 2024-07-02 16:55:53 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: Yes)
    Attachment (pg_test_cyclecounter.c) at 2024-06-20 10:54:55 from Hannu Krosing <hannuk at google.com> (Patch: No)
    Attachment (pg_test_timing.nanoseconds.patch) at 2024-06-20 10:41:54 from Hannu Krosing <hannuk at google.com> (Patch: Yes)
    Attachment (use-gettimeofday-for-instr_time.patch) at 2024-06-19 16:36:34 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: Yes)
History
When Who What
2024-10-07 07:16:34 Michael Paquier (michael-kun) Closed in commitfest 2024-09 with status: Returned with feedback
2024-08-01 04:06:22 Corey Huinker (coreyh) Closed in commitfest 2024-07 with status: Moved to next CF
2024-07-02 20:50:39 Tom Lane (tgl) New status: Waiting on Author
2024-06-21 19:18:48 Tom Lane (tgl) Changed reviewers to Tom Lane (tgl)
2024-06-21 19:18:48 Tom Lane (tgl) Changed authors to Hannu Krosing (hannukrosing)
2024-06-21 19:18:29 Tom Lane (tgl) Attached mail thread be0339cc-1ae1-4892-9445-8e6d8995a44d@eisentraut.org
2024-06-21 19:18:29 Tom Lane (tgl) Created patch record
Edit