Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fizixer
· 11y ago · 0 comments
In the first plot, why do all libraries slow down at the n=1000 mark? something to do with cache?
Comments
[–]
acconsta
11y ago
Yep. A 32KB L1 cache can hold at most 4000 doubles. 4000/(2 input vectors + 1 result) =1333.
http://danluu.com/3c-conflict/
[–]
wall_words
11y ago
I'm guessing that's the point at which the working set exceeds the L1 cache size. You can see a few more subtle dips in the performance graph at later points; these correspond to working set spilling out of the L2 and L3 caches.