From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 08:53:15 2010 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A74661065679; Thu, 19 Aug 2010 08:53:15 +0000 (UTC) (envelope-from prvs=1847987112=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id C36128FC1D; Thu, 19 Aug 2010 08:53:14 +0000 (UTC) X-MDAV-Processed: mail1.multiplay.co.uk, Thu, 19 Aug 2010 09:42:51 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 19 Aug 2010 09:42:51 +0100 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-5.0 required=6.0 tests=USER_IN_WHITELIST shortcircuit=ham autolearn=disabled version=3.2.5 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v10.0.4) with ESMTP id md50011088538.msg; Thu, 19 Aug 2010 09:42:51 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=1847987112=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <950D7AECAF38488A981B3045DEB1EEA3@multiplay.co.uk> From: "Steven Hartland" To: "Doug Barton" , "Gabor Kovesdan" References: <4C6CD229.1010401@FreeBSD.org> Date: Thu, 19 Aug 2010 09:42:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Cc: delphij@FreeBSD.org, current@FreeBSD.org Subject: Re: BSD grep performance 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, 19 Aug 2010 08:53:15 -0000 Out of interest I tried the first test here add ack into the mix we I've grown to like as a developer as it uses some nice sensible defaults for every day use avoiding svn etc. Its a pure perl app so wasn't expecting it to be particularly quick in the single file case, its much quicker in the multi file case, but it seems to do quite well. ./grep-time-trial.sh GNU grep 2.5.4 Elapsed time: 2 seconds GNU grep 2.5.1-FreeBSD (base on 8.1-RELEASE) Elapsed time: 2 seconds BSD grep ( from ports 2.5.1 ) Elapsed time: 48 seconds ack 1.92 ( perl 5.8.9 ) Elapsed time: 4 seconds Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.