Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 496 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 496 Bytes

Cache latency benchmark

Simple random pointer chasing loop benchmark to measure average cache access latency.

Quick start

Pre-requisites:

  • C23 conforming compiler
  • Meson
  • Ninja

Build

meson setup <builddir>
meson compile -C <builddir>

Run

./<builddir>/cache-latency [MAX_MEMORY_SIZE]

Todo-list

  • Add a script to generate plots

Credits

Code heavily inspired by Yaspr's (not on GitHub anymore) cache latency benchmark in the ybench tool.