Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was a bit surprised by the macos/linux speed differential here:

> The difference in macOS and Linux speed is actually the difference in clang and gcc speed. The LLVM clang compiler is doing better optimizations for x86 processors here.

I know GCC has been getting much, much more aggressive as of late, but there have been some complaints that it is now much, much less safe (checks intended for security getting optimized away, e.g.).

I wonder if you were to go back to 5 years ago, if you'd see the linux code was generally safer than the speedy osx llvm code...



I'd assume the difference between Linux's GNU and macOS's BSD implementations would be much more significant.


Exactly. MacOS (really BSD) grep sucks, 5-10x slower than GNU Grep for simple searches on the same hardware, but MacOS/BSD wc is fast.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: