Re: Time to move pg_test_timing to measure in nanoseconds

2023-03-26 Thread Hannu Krosing
Sure, will do. On Sun, Mar 26, 2023 at 11:40 PM Andres Freund wrote: > > Hi, > > On 2023-03-26 16:43:21 +0200, Hannu Krosing wrote: > > Currently pg_test_timing utility measures its timing overhead in > > microseconds, giving results like this > > I have a patch that does that and a bit more that

Re: Time to move pg_test_timing to measure in nanoseconds

2023-03-26 Thread Andres Freund
Hi, On 2023-03-26 16:43:21 +0200, Hannu Krosing wrote: > Currently pg_test_timing utility measures its timing overhead in > microseconds, giving results like this I have a patch that does that and a bit more that's included in a larger patchset by David Geier: https://postgr.es/m/198ef658-a5b7-98

Time to move pg_test_timing to measure in nanoseconds

2023-03-26 Thread Hannu Krosing
Currently pg_test_timing utility measures its timing overhead in microseconds, giving results like this ~$ /usr/lib/postgresql/15/bin/pg_test_timing Testing timing overhead for 3 seconds. Per loop time including overhead: 18.97 ns Histogram of timing durations: < us % of total count