From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 22:59:11 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 3367E16A41F; Thu, 27 Oct 2005 22:59:11 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from linda-2.paradise.net.nz (bm-2a.paradise.net.nz [203.96.152.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A0543D46; Thu, 27 Oct 2005 22:59:10 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from smtp-3.paradise.net.nz (tclsnelbe2-src-nat-1 [203.96.152.177]) by linda-2.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IP100IZRJULAP@linda-2.paradise.net.nz>; Fri, 28 Oct 2005 11:59:09 +1300 (NZDT) Received: from [192.168.1.11] (218-101-13-50.paradise.net.nz [218.101.13.50]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id 2E84E91DF3C; Fri, 28 Oct 2005 11:59:09 +1300 (NZDT) Date: Fri, 28 Oct 2005 11:59:07 +1300 From: Mark Kirkwood In-reply-to: <43613541.7030009@mac.com> To: Chuck Swiger Message-id: <43615BBB.2080702@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) References: <21137.1130401220@critter.freebsd.dk> <00a801c5dacf$db3b7700$6504010a@Jura> <43613541.7030009@mac.com> 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: Thu, 27 Oct 2005 22:59:11 -0000 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 :-(. [Running a pretty much stock kernel, except for: #cpu I486_CPU #cpu I586_CPU and timer.c is compiled w/o any optimization.] cheers Mark