r/cpp • u/pavel_v • Oct 21 '25
When Compiler Optimizations Hurt Performance
https://nemanjatrifunovic.substack.com/p/when-compiler-optimizations-hurt
68
Upvotes
r/cpp • u/pavel_v • Oct 21 '25
View all comments
Show parent comment
7
u/Nicksaurus Oct 21 '25 edited Oct 21 '25
Lorem ipsum only contains ascii characters so I wanted to see how well it handles other code planes: https://quick-bench.com/q/b5FhDr7CxbZuhkSmzafUnQXyUI4
Turns out the result is pretty much the same. I think any real dataset is likely to work well with the branchy version because characters that are next to each other are likely to come from the same code planes
(The test strings came from here)