r/cpp • u/hallofcheat99 • May 27 '26
Lessons I’ve learned from benchmarking lock free queues
https://open.substack.com/pub/simonlee99ap/p/should-your-system-use-lock-free?r=16x6qr&utm_medium=iosHey all, I’ve started writing about systems related topics, and as a first article I wanted to understand the tradeoffs of adopting lock free data structures. Turns out it’s hard to find an audience that’d be interested in this kind of topic, so I figured people here might be the best fit. Let me know what you think about the article! Would love to hear your thoughts
87
Upvotes
View all comments
Show parent comment
6
u/hallofcheat99 May 27 '26
That’s a good mental model to have. I think I didn’t have this starting out with the article because I’ve only heard “hey lock free data structures are fast” which is a categorical mistake as you pointed out.
I still think it’s interesting to see how they behave under load, revealing different emergent properties of these implementations. This is also a wishy washy way of me saying I was too deep into the research when I realized the mistake and just wanted to write something about it :P