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

From: Pertti Kosunen <pertti.kosunen_at_pp.nic.fi>
Date: Fri, 28 Oct 2005 12:33:11 +0300
Mark Kirkwood wrote:
> 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?
> 
>        null function: 0.01578
>             getpid(): 0.49136
>               time(): 0.83031
>       gettimeofday(): 0.78838
> 
> However, we are still slower than Linux :-(.
> 
> [Running a pretty much stock kernel, except for:
> 
> #cpu        I486_CPU
> #cpu        I586_CPU
> 
> and timer.c is compiled w/o any optimization.]

Does polling affect to this test?

I get:
        null function: 0.01060
             getpid(): 0.41378
               time(): 0.66705
       gettimeofday(): 0.64459

FreeBSD 6.0-BETA5 #1: Sun Oct  9 13:09:23 EEST 2005
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(TM)Processor (1009.95-MHz 686-class CPU)

# Enable Polling
options         DEVICE_POLLING

# Timecounter "i8254"
options         HZ=2299
Received on Fri Oct 28 2005 - 07:33:11 UTC

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