Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 07:29:03 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Mark Kirkwood <markir@paradise.net.nz>
Cc:        David Xu <davidxu@freebsd.org>, "Yuriy N. Shkandybin" <jura@networks.ru>, current@freebsd.org
Subject:   Re: Timers and timing, was: MySQL Performance 6.0rc1 
Message-ID:  <28339.1130477343@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 28 Oct 2005 11:59:07 %2B1300." <43615BBB.2080702@paradise.net.nz> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <43615BBB.2080702@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28339.1130477343>