BSD grep performance

Steven Hartland killing at multiplay.co.uk
Thu Aug 19 08:53:15 UTC 2010


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 at multiplay.co.uk.



More information about the freebsd-current mailing list