<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv" -->

---
title: How fast can you open 1000 files? – Daniel Lemire&#x27;s blog
description: 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...
canonical: https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How fast can you open 1000 files? – Daniel Lemire&#x27;s blog | daily.dev
og:description: 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...
og:url: https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv
og:image: https://api.daily.dev/og/posts/vwps5mRKV.png
og:image:alt: How fast can you open 1000 files? – Daniel Lemire&#x27;s blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Daniel Lemire](https://daily.dev/sources/lemire)

[Read post](https://api.daily.dev/r/vwps5mRKV)

# [How fast can you open 1000 files? – Daniel Lemire's blog](https://api.daily.dev/r/vwps5mRKV "Go to post")

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++](/tags/c%2B%2B "Check all #c++ posts")[#linux](/tags/linux "Check all #linux posts")[#mac](/tags/mac "Check all #mac posts")[#performance](/tags/performance "Check all #performance posts")

Mar 01, 2025•3m read time•From [lemire.me](https://api.daily.dev/r/vwps5mRKV "lemire.me")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/13627914652bc25887b23e4860540076?_a=AQAEuj9)](https://api.daily.dev/r/vwps5mRKV "Go to post")

30 Impressions8 Upvotes

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Daniel Lemire's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/33b93b4f779a45bdaca4a8d3d678fe39)](https://daily.dev/sources/lemire)

[Daniel Lemire](https://daily.dev/sources/lemire "https://daily.dev/sources/lemire")

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

21 Followers

•

127 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

8

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How fast can you open 1000 files? – Daniel Lemire's blog","url":"https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv"},"datePublished":"2025-03-01T22:43:31.522Z","dateModified":"2026-03-15T03:33:01.657Z","description":"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...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/13627914652bc25887b23e4860540076?_a=AQAEuj9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/13627914652bc25887b23e4860540076?_a=AQAEuj9","isAccessibleForFree":true,"articleSection":"Daniel Lemire","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Daniel Lemire","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/33b93b4f779a45bdaca4a8d3d678fe39","url":"https://daily.dev/sources/lemire"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-fast-can-you-open-1000-files-daniel-lemire-s-blog-vwps5mrkv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c++,linux,mac,performance","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Daniel Lemire","item":"https://daily.dev/sources/lemire"},{"@type":"ListItem","position":3,"name":"How fast can you open 1000 files? – Daniel Lemire's blog"}]}
```

