Andrew Gallant on X: "Does anyone know why ripgrep is soooooo much slower on macOS than Linux these days? On the left is my AMD Ryzen 9 7940HS laptop and on the right is my M2 mac mini. Both searching the same revision of Chromium and both are hot in the OS page cache. https://t.co/AdGxEsRfbK" / X<br>Post
Log inSign up
Post
Andrew Gallant
@burntsushi5
Does anyone know why ripgrep is soooooo much slower on macOS than Linux these days? On the left is my AMD Ryzen 9 7940HS laptop and on the right is my M2 mac mini. Both searching the same revision of Chromium and both are hot in the OS page cache.
span:not(:empty)~span:not(:empty)]:before:content-['·'] [&>span:not(:empty)~span:not(:empty)]:before:px-1 [&>span:not(:empty)~span:not(:empty)]:before:shrink-0">2:24 PM · Jul 29, 2026783Views
span:not(:empty)~span:not(:empty)]:before:content-['·'] [&>span:not(:empty)~span:not(:empty)]:before:px-1 [&>span:not(:empty)~span:not(:empty)]:before:shrink-0 min-w-0 overflow-hidden">Andrew Gallant
@burntsushi5
50m
Profiles of these two commands look quite similar. They're both spending lots of time in `read` syscalls. Which... makes sense. But why is macOS almost two orders of magnitude slower?
svg]:size-5 text-body hover:bg-mix-current hover:bg-mix-amount-10 active:bg-mix-current active:bg-mix-amount-15 focus-visible:bg-mix-current focus-visible:bg-mix-amount-10 outline-current -m-2 shrink-0 cursor-pointer border-transparent p-0 text-body size-9 [&>svg]:size-[1.25em] [&>[data-engagement-icon]]:size-[1.25em] group-hover:bg-mix-current group-hover:bg-mix-amount-10" aria-label="View count" type="button" data-state="closed" href="/burntsushi5/status/2082472423148986728/quotes">278
span:not(:empty)~span:not(:empty)]:before:content-['·'] [&>span:not(:empty)~span:not(:empty)]:before:px-1 [&>span:not(:empty)~span:not(:empty)]:before:shrink-0 min-w-0 overflow-hidden">maia arson crimew facts and tea<br>@awawawhoami
22m
what terminal emulator are u using on macos? iirc some security feature of macos slows down anything that isnt Terminalapp unless u give it extra permissiosn
svg]:size-5 text-body hover:bg-mix-current hover:bg-mix-amount-10 active:bg-mix-current active:bg-mix-amount-15 focus-visible:bg-mix-current focus-visible:bg-mix-amount-10 outline-current -m-2 shrink-0 cursor-pointer border-transparent p-0 text-body size-9 [&>svg]:size-[1.25em] [&>[data-engagement-icon]]:size-[1.25em] group-hover:bg-mix-current group-hover:bg-mix-amount-10" aria-label="View count" type="button" data-state="closed" href="/awawawhoami/status/2082479346472661302/quotes">126
New to X?<br>Sign up now to get your own personalized timeline!<br>Sign up with GoogleSign up with AppleCreate account<br>By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.
Relevant people<br>Andrew Gallant@burntsushi5Follow<br>I love to code.
I rarely check DMs. My email address is on my web site.
Trending now
Don't miss what's happening<br>People on X are the first to know.
Log inSign up