Date: Fri, 30 Jul 1999 18:53:56 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Dag-Erling Smorgrav <des@flood.ping.uio.no> Cc: John-Mark Gurney <gurney_j@resnet.uoregon.edu>, James Howard <howardjp@wam.umd.edu>, "Daniel C. Sobral" <dcs@newsguy.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) Message-ID: <19990730185356.A67407@mad> In-Reply-To: <xzpyafy1d53.fsf@flood.ping.uio.no>; from Dag-Erling Smorgrav on Fri, Jul 30, 1999 at 03:27:20PM %2B0200 References: <19990729182229.E24296@mad> <Pine.GSO.4.10.9907291856100.11776-100000@rac9.wam.umd.edu> <19990729164533.36798@hydrogen.fircrest.net> <xzpyafy1d53.fsf@flood.ping.uio.no>
index | next in thread | previous in thread | raw e-mail
On Fri, Jul 30, 1999 at 03:27:20PM +0200, Dag-Erling Smorgrav wrote:
>
> > it was VERY simple to do... and attached is the patch... this uses the
> > option REG_STARTEND to do what the copy was trying to do... all of the
> > code to use REG_STARTEND was already there, it just needed to be enabled..
>
> Funnily, I experience a near-doubling of running time with similar
> patches.
Strange... His patches made grep on my system much faster than the
original 0.10 and almost as fast as GNU grep.
b$ /usr/bin/time ./grep-10 -e printer longfile > /dev/null
1.16 real 0.97 user 0.19 sys
b$ /usr/bin/time ./grep-10-jmg -e printer longfile > /dev/null
0.48 real 0.43 user 0.04 sys
b$ /usr/bin/time grep -e printer longfile > /dev/null
0.28 real 0.09 user 0.18 sys
This is one of the original Celerons, FWIW. Once-in-a-while that gives
me performance numbers somewhat different from any other Intel.
--
This is my .signature which gets appended to the end of my messages.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990730185356.A67407>
