r/programming • u/quest_for_7c • 28m ago
Where your stack lives can move a benchmark by 50%
https://heikoseeberger.de/2026-12-01-stack-position/
0
Upvotes
r/programming • u/quest_for_7c • 28m ago
1
u/quest_for_7c 27m ago
Author here. We added timers to tellus, a benchmark got 55% slower, and the timers weren't the cause. An unaligned 16-byte copy on every message got slow whenever it straddled two memory pages, and that depended only on where the thread's stack started. The same binary ran 67% slower just because its stack lay 96 bytes deeper. Happy to answer questions.