Re: Timers and timing, was: MySQL Performance 6.0rc1

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 28 Oct 2005 07:29:03 +0200
In message <43615BBB.2080702_at_paradise.net.nz>, Mark Kirkwood writes:
>Chuck Swiger wrote:
>
>> FreeBSD 5.4-STABLE i386
>>        null function: 0.01278
>>             getpid(): 0.51329
>>               time(): 2.54771
>>       gettimeofday(): 2.54982
>> 
>
>Chuck - very interesting results. I happen to have a PIII 1Ghz running 
>5.4-RELEASE so thought it would be interesting to reproduce your 
>numbers. My null and getpid pretty much do, but the time functions seem 
>much quicker on my machine - some sort of regression in 5.4-STABLE maybe?

No, different timecounter hardware.

Use 
	sysctl kern.timecounter 
to see what your hardware uses.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Fri Oct 28 2005 - 03:29:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:46 UTC