Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 23s8 days 9 hours 54 minutes 23 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 23s8 days 9 hours 54 minutes 23 seconds.

Sign in to watch this lesson
The Memory Hierarchy · 3:58
A load can take about a nanosecond or about a hundred, depending on where its data sits. On an Apple M3 we read the cache sizes and the 128-byte line from sysctl, time dependent loads that fit in L1, in L2 and in DRAM, and use a stride sweep to see the line directly. Then spatial and temporal locality, prefetching, and the classic interview question: summing a matrix by rows versus by columns, measured more than fifty times apart.