forked from ssvb/tinymembench
-
Notifications
You must be signed in to change notification settings - Fork 1
Simple benchmark for memory throughput and latency
License
sun409/tinymembench-pthread
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 ---------------- This is a modified version which uses pthread to run some tests in parallel. The flags needed to link with pthread are added in Makefile. Example of running the test in parallel 4 threads: $ ./tinymembench 4
About
Simple benchmark for memory throughput and latency
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 69.8%
- Assembly 29.4%
- Makefile 0.8%