Official request: Please make GNU grep the default

Dag-Erling Smørgrav des at
Fri Aug 20 19:27:46 UTC 2010

Alan Cox <alc at> writes:
> Here is what actually puzzles me about these results.  With
> traditional I/O, even after the optimizations to bsdgrep, the system
> time for gnugrep is still less than half that of the optimized
> bsdgrep.  I haven't looked at the changes, but I would have thought
> the system time for gnugrep and bsdgrep would be almost the same.

Two reasons:

1) BSD grep does tons of unnecessary memory-to-memory copy operations in

2) GNU grep has its own highly optimized regex code.

Dag-Erling Smørgrav - des at

More information about the freebsd-current mailing list