Daniel Lemire
Read post

How fast can you open 1000 files? – Daniel Lemire's blog

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.

    #c++#linux#mac#performance
Mar 01, 2025•3m read time•From lemire.me
Post cover image
30 Impressions
Daniel Lemire's image
Daniel Lemire

Authored by Daniel Lemire, a computer science professor and researcher, this blog covers a wide rang...

21 Followers

•

127 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard