https://github.com/dssgabriel/cache-latency
Simple cache latency benchmark using a random pointer chasing loop
https://github.com/dssgabriel/cache-latency
benchmark cache-latency
Last synced: 11 months ago
JSON representation
Simple cache latency benchmark using a random pointer chasing loop
- Host: GitHub
- URL: https://github.com/dssgabriel/cache-latency
- Owner: dssgabriel
- License: bsd-2-clause
- Created: 2024-06-13T00:14:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T09:50:33.000Z (almost 2 years ago)
- Last Synced: 2025-06-08T07:44:13.830Z (12 months ago)
- Topics: benchmark, cache-latency
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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**
```sh
meson setup
meson compile -C
```
**Run**
```sh
.//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.