News for hackers. Stuff that matters.
Re:Why GNU grep is fast (2010) by tlb on Sunday July 24, 2022 @01:38PM (#32215744)
I'd forgotten to upgrade grep on my latest Macbook. In a large source code repo, looking for a fixed string with no wildcards:

osx grep -r:

  real 2m37.786s
  user 2m27.034s
  sys 0m3.958s
ggrep -r:

  real 0m12.842s
  user 0m5.754s
  sys 0m2.825s
which is the difference between something I'd avoid and something I'll use.
Re:Why GNU grep is fast (2010) by mpweiher on Sunday July 24, 2022 @02:15PM (#32216116)
Did you try setting the locale for OSX grep?

    LC_CTYPE=C
https://news.ycombinator.com/item?id=4841168
Re:Why GNU grep is fast (2010) by potatoalienof13 on Sunday July 24, 2022 @02:19PM (#32216145)
Did you make sure to clear the filesystem cache between each run?
Re:Why GNU grep is fast (2010) by tlb on Sunday July 24, 2022 @02:24PM (#32216189)
The cache was warm for both measurements, which is more typical of my dev environment.