Re: What is a typical precision of gettimeofday()? - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: What is a typical precision of gettimeofday()?
Date
Msg-id e781bd012e3f8d61849c35fc4ac8ea4dc39f254b.camel@cybertec.at
Whole thread Raw
In response to Re: What is a typical precision of gettimeofday()?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: What is a typical precision of gettimeofday()?
List pgsql-hackers
On Tue, 2025-07-08 at 18:17 -0400, Tom Lane wrote:
> One other thing that bothers me as I look at the output is
>
>     Per loop time including overhead: 731.26 ns
>
> That's stated in a way that makes it sound like that is a
> very solid number, when in fact it's just the average.
> We see from these test cases that there are frequently
> a few outliers that are far from the average.  I'm tempted
> to rephrase as
>
>     Average loop time including overhead: 731.26 ns
>
> or some variant of that.  Thoughts?

I think that is a good idea.

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: Improving and extending int128.h to more of numeric.c
Next
From: John Naylor
Date:
Subject: Re: [V2] Adding new CRC32C implementation for IBM S390X