Timers and timing, was: MySQL Performance 6.0rc1
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Oct 27 22:29:07 PDT 2005
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.
More information about the freebsd-current
mailing list