https://github.com/ssvb/tinymembench
Simple benchmark for memory throughput and latency
https://github.com/ssvb/tinymembench
Last synced: about 2 months ago
JSON representation
Simple benchmark for memory throughput and latency
- Host: GitHub
- URL: https://github.com/ssvb/tinymembench
- Owner: ssvb
- License: mit
- Created: 2012-12-26T19:30:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T14:38:58.000Z (over 2 years ago)
- Last Synced: 2024-11-09T10:39:20.741Z (over 1 year ago)
- Language: C
- Size: 94.7 KB
- Stars: 354
- Watchers: 30
- Forks: 96
- Open Issues: 19
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
- awesome-high-performance-computing - tinymembench - A simple memory benchmark tool, focusing on benchmarking memory bandwidth and latency with minimal dependencies, suitable for various platforms. (Software / Trends)
README
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.
The benchmark results for some hardware can be found in the wiki page:
https://github.com/ssvb/tinymembench/wiki
This program can be compiled in either linux or windows (via mingw32 and msys)
by simply running make:
$ make
Adding extra optimization options is possible (in linux):
$ CFLAGS="-O2 -march=atom -mtune=atom" make
Example of crosscompiling for ARM (also in linux):
$ CC=arm-linux-gnueabihf-gcc CFLAGS="-O2 -mcpu=cortex-a9" make
Example of crosscompiling and running the benchmark on android device:
$ 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