GNU grep is 10x faster than Mac grep

That's likely all you need to do to install and make default GNU grep, which on my machine is a ~10x speedup over the grep that ships with Mac OS.Of course in this particular case I could use git grep, which doesn't use the system's grep. It's about the same speed as GNU grep:/usr/bin/grep -V says that it's FreeBSD grep version 2.5.1. I don't know if the grep FreeBSD actually ships is similarly slow.

Who influenced this selection?What is this?

What the influencers are saying

  1. Ryan Paul

    170.0 days ago

    Wow, the FreeBSD implementation of grep that ships in Mac OS X is apparently 10 times slower than GNU grep: http://t.co/RjZd1t9H

  2. news.yc Popular

    170.0 days ago

    GNU grep is 10x faster than Mac grep http://t.co/pFb3XSOf

  3. Dion Almaer

    170.0 days ago

    git grep / gnu grep are "10x" faster than the OSX builtin http://t.co/SLDILlYR



Related Reading




InformationWeek encourages readers to engage in spirited, healthy debate, including taking us to task. However, InformationWeek moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. InformationWeek further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.