Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84 chuqui version 1.9 3/12/85; site unisoft.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!umcp-cs!gymble!lll-crg!dual!unisoft!fnf From: fnf@unisoft.UUCP Newsgroups: net.unix,net.bugs.usg Subject: fgrep (isn't) Message-ID: <495@unisoft.UUCP> Date: Mon, 8-Jul-85 18:09:04 EDT Article-I.D.: unisoft.495 Posted: Mon Jul 8 18:09:04 1985 Date-Received: Thu, 11-Jul-85 20:05:42 EDT Distribution: net Organization: UniSoft Systems, Berkeley Lines: 30 Xref: watmath net.unix:4998 net.bugs.usg:246 *** REPLACE THIS LINE WITH YOUR LIFE HISTORY *** After grabbing the bgrep distribution off of mod.sources recently I decided to try a quick test of the various grep's on one our system V release 2 ports: Trial 1: *grep FOOBARBLETCH /etc/termcap Trial 2: *grep BARF /etc/termcap Trial 3: *grep MI /etc/termcap /etc/termcap approx 50kb trial 1 trial 2 trial 3 real user sys real user sys real user sys ---- ---- --- ---- ---- --- ---- ---- --- grep 1.9 1.1 0.6 1.8 1.1 0.6 1.8 1.1 0.6 bgrep 2.7 1.9 0.7 2.3 1.4 0.7 4.9 3.9 0.7 egrep 3.5 2.6 0.7 3.6 2.8 0.6 3.5 2.7 0.6 fgrep 9.6 8.8 0.7 9.7 9.0 0.6 9.8 8.9 0.7 Notice that plain old grep is the fastest of all, and fgrep is the slowest! =========================================================================== Fred Fish UniSoft Systems Inc, 739 Allston Way, Berkeley, CA 94710 USA {ucbvax,decvax}!unisoft!fnf (415) 644 1230 TWX 11 910 366-2145 ===========================================================================