Jarred Sumner noted on X that macOS has slow file opening due to thread contention. Daniel Lemire tested this by writing a C++ program to open 1000 files using varying thread counts on an Apple M2 laptop and a big x64 Linux server. Results showed macOS is slower despite better hardware, while Linux performed better overall. More threads didn't always mean better performance, and thread pools sometimes helped on the bigger machine.
Sort: