From owner-freebsd-chat@FreeBSD.ORG Sat Mar 13 21:12:04 2004 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2743E16A4CE for ; Sat, 13 Mar 2004 21:12:04 -0800 (PST) Received: from VARK.homeunix.com (adsl-68-121-162-101.dsl.pltn13.pacbell.net [68.121.162.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC0F043D1F for ; Sat, 13 Mar 2004 21:12:03 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i2E5BSuo057493; Sat, 13 Mar 2004 21:11:29 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i2E5BSYI057492; Sat, 13 Mar 2004 21:11:28 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Sat, 13 Mar 2004 21:11:28 -0800 From: David Schultz To: "Daniel O'Connor" Message-ID: <20040314051128.GA57404@VARK.homeunix.com> Mail-Followup-To: Daniel O'Connor , freebsd-chat@FreeBSD.ORG, Rob References: <404FAC50.6070603@pythonemproject.com> <200403111155.39591.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403111155.39591.doconnor@gsoft.com.au> cc: Rob cc: freebsd-chat@FreeBSD.ORG Subject: Re: What makes Centrino so fast? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 05:12:04 -0000 On Thu, Mar 11, 2004, Daniel O'Connor wrote: > On Thu, 11 Mar 2004 10:31, Rob wrote: > > I have my own benchmark program that I use for number crunching. > > It uses a mixture of Python and Numeric Python. > > > > Athlon 2166Mhz as reported by OS: 2m38.7s > > Intel Centrino Pentium 1700 Mhz: 2m17s > > > > Is it just compiler optimization at play? > > Here's an interesting article on it -> > http://arstechnica.com/cpu/004/pentium-m/pentium-m-1.html > > but in short.. better branch prediction, and micro-architecture improvments in > general, and a slightly longer pipeline (for higher clocks vs a PIII) You're right that the longer pipeline allows the processor to be clocked higher, but for a *given* speed (e.g. 1700 MHz), a longer pipeline is actyually a disadvantage; longer pipelines cause more stalls and higher branch misprediction costs. The better branch predition merely attempts to hide the penalty of the longer pipeline. I don't know why the Centrino performs better than the Athlon in this case, though. If you really care, you'll probably have to factor the benchmark into specific, simple tests that demonstrate the performance difference, play with compiler optimizations, etc.