https://github.com/sysprog21/tinymembench
Measure peak bandwidth of sequential memory accesses and the latency of random memory accesses
https://github.com/sysprog21/tinymembench
Last synced: about 1 month ago
JSON representation
Measure peak bandwidth of sequential memory accesses and the latency of random memory accesses
- Host: GitHub
- URL: https://github.com/sysprog21/tinymembench
- Owner: sysprog21
- License: mit
- Created: 2019-04-26T18:13:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T20:21:12.000Z (over 3 years ago)
- Last Synced: 2025-05-08T23:54:07.140Z (about 1 month ago)
- Language: C
- Size: 59.6 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tinymembench
This is a simple memory benchmark program, which tries to measure the peak
bandwidth of sequential memory accesses and the latency of random memory
accesses. Bandwidth is measured by running different assembly code for
the aligned memory blocks and attempting different prefetch strategies.## Benchmark
The benchmark results for some hardware can be found in the wiki page:
https://github.com/ssvb/tinymembench/wiki## Build from source
This program can be compiled in either linux or windows (via mingw32 and msys)
by simply running make:
```shell
$ make
```Adding extra optimization options is possible:
```shell
$ CFLAGS="-O2 -march=atom -mtune=atom" make
```Example of crosscompiling for Arm:
```shell
$ CC=arm-linux-gnueabihf-gcc CFLAGS="-O2 -mcpu=cortex-a9" make
```Example of crosscompiling and running the benchmark on Android device:
```shell
$ CC=arm-linux-gnueabihf-gcc CFLAGS="-O2 -mcpu=cortex-a8 -static" make
$ adb push tinymembench /data/local/tmp/tinymembench
$ adb shell /data/local/tmp/tinymembench
```