Cache thrashing example from "High Performance C++" book.
Result on Raspberry Pi 3B (SIZE=1000, NUMBER_OF_SAMPLES=36)
Cache trashing access results
Number of samples 36
Avg measurement: 104248221
Min measurement: 84099123
Max measurement: 187154458
Correct cache access results
Number of samples 36
Avg measurement: 89621354
Min measurement: 73536550
Max measurement: 157723693