Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 10:23:05 +0200
From:      Massimo Lusetti <massimo@cedoc.mo.it>
To:        freebsd-current@freebsd.org
Subject:   Re: Timers and timing, was: MySQL Performance 6.0rc1
Message-ID:  <1130487786.4259.7.camel@massimo.datacode.it>
In-Reply-To: <1864.FgtQRFVGBkU=.1130463640.squirrel@172.16.0.1>
References:  <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura>	<43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> <4361683E.7040504@freebsd.org> <436171E2.6050206@freebsd.org> <436176E0.1090401@tog.net> <1864.FgtQRFVGBkU=.1130463640.squirrel@172.16.0.1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2005-10-27 at 21:40 -0400, Mike Jakubik wrote:
> On Thu, October 27, 2005 8:54 pm, ender wrote:
> 
> > CPU: AMD Athlon(tm) MP 2800+ (2133.42-MHz 686-class CPU)
> > FreeBSD 6.0-RC1
> > SMP kernel,
> > #cpu            I486_CPU
> > #cpu            I586_CPU
> >
> >
> >
> > null function: 0.00471
> > getpid(): 0.18755
> > time(): 1.18135
> > gettimeofday(): 1.17575
> 
> Thats pretty odd, considering the following:
> 
> FreeBSD 7.0-CURRENT #0: Sat Sep 24 21:12:10 EDT 2005
> CPU: AMD Athlon(tm) Processor (1410.21-MHz 686-class CPU)
> 
>        null function: 0.00145
>             getpid(): 0.26670
>               time(): 0.85759
>       gettimeofday(): 0.83653

Yep, and on 5.3-STABLE of 12/2004 on a Xeon 2.8G

       null function: 0.00460
            getpid(): 0.41424
              time(): 0.55854
      gettimeofday(): 0.54748


But, while repeating, I've seen values of time() and gettimeofday()
changing even to more then 2 secs.


For the records here is the result on a Linux kernel 2.6.12-1.1380_FC3
(Fedora Core 3) on a P4 1.8G

       null function: 0.00947
            getpid(): 0.00988
              time(): 3.80196
      gettimeofday(): 4.04731


-- 
Massimo.run();





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