Skip to content

Simple cache latency benchmark using a random pointer chasing loop

License

Notifications You must be signed in to change notification settings

dssgabriel/cache-latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple cache latency benchmark using a random pointer chasing loop

Topics

Resources

License

Stars

Watchers

Forks