From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 23 09:54:20 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5A8A1EC7 for ; Sat, 23 Mar 2013 09:54:20 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.server1.bsdforen.de (bsdforen.de [82.193.243.81]) by mx1.freebsd.org (Postfix) with ESMTP id 221B3D76 for ; Sat, 23 Mar 2013 09:54:19 +0000 (UTC) Received: from mobileKamikaze.norad (HSI-KBW-134-3-231-194.hsi14.kabel-badenwuerttemberg.de [134.3.231.194]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.server1.bsdforen.de (Postfix) with ESMTPSA id 9981A86179 for ; Sat, 23 Mar 2013 10:54:18 +0100 (CET) Message-ID: <514D7BC9.2020607@bsdforen.de> Date: Sat, 23 Mar 2013 10:54:17 +0100 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130309 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: bsdgrep status X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Mar 2013 09:54:20 -0000 In 2011 I substituted grep for bsdgrep in some of my more complex shell scripts and ran into some issues. Though there never was a reply to my e-mail these issues have evidently been fixed. I'm tempted to conclude that bsdgrep is ready for deployment. Apart from the performance standpoint. I repeated the following several times the result is always about the same: # time -h pkg_libchk.gnu eclipse-3.7.1_4: /usr/local/lib/eclipse/configuration/org.eclipse.osgi/bundles/119/1/.cp/libswt-awt-gtk-3738.so misses libjawt.so libreoffice-4.0.1: /usr/local/lib/libreoffice/program/xpdfimport misses libpoppler.so.18 18m7.13s real 4m49.19s user 20m54.07s sys # time -h pkg_libchk.bsd eclipse-3.7.1_4: /usr/local/lib/eclipse/configuration/org.eclipse.osgi/bundles/119/1/.cp/libswt-awt-gtk-3738.so misses libjawt.so libreoffice-4.0.1: /usr/local/lib/libreoffice/program/xpdfimport misses libpoppler.so.18 20m30.75s real 5m10.25s user 22m6.71s sys I cannot say how much of the runtime is caused by grep, but all the difference is certainly made by grep and I think the difference is significant. It's maybe not bad enough to stop the switch, however it violates the noble tradition of having command line tools that are faster than the GNU equivalents. E.g. my latest AWK script is 7 times faster using one-true-awk, compared to GNU AWK. Compare bash and ash and you'll end up with a factor around 3 for scripts that mostly use builtin commands. Regards, Kami -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?