From owner-freebsd-hackers Sun Mar 10 15:41:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by hub.freebsd.org (Postfix) with ESMTP id C8D6537B402 for ; Sun, 10 Mar 2002 15:41:20 -0800 (PST) Received: from [193.170.124.123] (helo=klumpert) by smtp.web.de with smtp (WEB.DE(Exim) 4.31 #23) id 16kCuz-00060S-00; Mon, 11 Mar 2002 00:39:57 +0100 Message-ID: <002e01c1c88c$e209bc30$df02110a@klumpert> From: "Martin Ankerl" To: "BOUWSMA Beery" Cc: References: <200203102005.g2AK5SN99334@beerswilling.netscum.dyndns.dk> Subject: Re: Performance of FreeBSD vs NetBSD (was: Re: Performance of -current vs -stable) Date: Mon, 11 Mar 2002 00:39:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Hmmm, a few weeks ago I did some totally unscientific testing, noting > > that -current was much slower than -stable, by playing an mp3 with an > [...] > > explain why FreeBSD's mpg123 takes ~60% CPU and NetBSD's ~30% (vs the > > ~90+% usage by -current)... from http://www.mpg123.de: -------------- The benchmarking lie? Let's write a few notes about benchmarking the different mp3 decoders, which are available. 'top' is NOT a benchmark, it's a simple check on how a program performs. The sad thing with 'top' (or better the linux kernel) is, that it has some problems with the measurement of threaded programs or programs only requesting short chunks of processor time. One real test is to measure how long your machine needs to decode a stream without threads with 100% CPU. Using mpg123 you can do this with time mpg123 -t mp3stream.mp3 or time mpg123 -s mp3stream.mp3 > /dev/null if you additionally want to measure the I/O time. If you find a player, which claims to be 10 or even more times faster than the current players: just don't believe it. A factor of 2 MAY BE possible -------------- Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message