From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 00:01:52 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 073EF16A41F for ; Fri, 28 Oct 2005 00:01:52 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93F2043D46 for ; Fri, 28 Oct 2005 00:01:51 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 094DB5D68; Thu, 27 Oct 2005 20:01:51 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65103-08; Thu, 27 Oct 2005 20:01:50 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-122-227.ny325.east.verizon.net [68.161.122.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 148FA5CC2; Thu, 27 Oct 2005 20:01:50 -0400 (EDT) Message-ID: <43616A73.7030709@mac.com> Date: Thu, 27 Oct 2005 20:01:55 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Kirkwood References: <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> <43615BBB.2080702@paradise.net.nz> In-Reply-To: <43615BBB.2080702@paradise.net.nz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: 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 00:01:52 -0000 Mark Kirkwood wrote: > 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? > > null function: 0.01578 > getpid(): 0.49136 > time(): 0.83031 > gettimeofday(): 0.78838 > > However, we are still slower than Linux :-(. Interesting. The 5.4 box was a Dell PowerEdge 2550 with a 933 Mhz P3, I think IIRC :-), running a kernel & world that's about two months old. > [Running a pretty much stock kernel, except for: > > #cpu I486_CPU > #cpu I586_CPU > > and timer.c is compiled w/o any optimization.] That's about what my kernel looks like, and I compiled using nothing but "cc -o timer timer.c" as well. -- -Chuck