fgrep (isn't)
fnf at unisoft.UUCP
fnf at unisoft.UUCP
Tue Jul 9 08:09:04 AEST 1985
*** 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
===========================================================================
More information about the Net.bugs.usg
mailing list