From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 05:29:06 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEA0C16A41F; Fri, 28 Oct 2005 05:29:06 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E67543D46; Fri, 28 Oct 2005 05:29:06 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id A40AFBC7A; Fri, 28 Oct 2005 05:29:03 +0000 (UTC) To: Mark Kirkwood From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 28 Oct 2005 11:59:07 +1300." <43615BBB.2080702@paradise.net.nz> Date: Fri, 28 Oct 2005 07:29:03 +0200 Message-ID: <28339.1130477343@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: David Xu , "Yuriy N. Shkandybin" , current@freebsd.org Subject: Re: Timers and timing, was: MySQL Performance 6.0rc1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 05:29:07 -0000 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.