https://github.com/ssvb/tinymembench
Tip revision: 37ef25ca61e612ad74b2b32eb404fde6a07bf0b4 authored by Siarhei Siamashka on 12 September 2011, 13:06:05 UTC
The first v0.1 release
The first v0.1 release
Tip revision: 37ef25c
readme.txt
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.
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-none-linux-gnueabi-gcc CFLAGS="-O2 -mcpu=cortex-a9" make
Example of crosscompiling and running the benchmark on android device:
$ CC=arm-none-linux-gnueabi-gcc CFLAGS="-O2 -mcpu=cortex-a8 -static" make
$ adb push ssvb-membench /data/local/tmp/ssvb-membench
$ adb shell /data/local/tmp/ssvb-membench