Date: Fri, 28 Oct 2005 16:05:30 +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: <1130508330.4302.1.camel@massimo.datacode.it> In-Reply-To: <1130487786.4259.7.camel@massimo.datacode.it> 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> <1130487786.4259.7.camel@massimo.datacode.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2005-10-28 at 10:23 +0200, Massimo Lusetti wrote: > 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. These results are with kern.timecounter.hardware: TSC kern.timecounter.choice: TSC(800) i8254(0) dummy(-1000000) > For the records her > (e 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 I don't know how to get infos about timecounter on linux. Regards -- Massimo.run();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1130508330.4302.1.camel>