Measuring cache performance + perf (2018)
josephmuia.ca·23h·
Flag this post

Joseph Muia


Allen Downey’s Think OS discusses cache performance and provides some code to experiment with on your own computer.

I’m going to run through the experiment and supplement the data with L1 cache events collected by perf.

Method

The program iterates through an array, measuring the average time to read and write an element. We vary the size of the array as well as the stride/step of the iteration to infer information about the c…

Similar Posts

Loading similar posts...