Skip to content

Simple benchmark for memory throughput and latency

License

Notifications You must be signed in to change notification settings

ptosi/tinymembench

This branch is 1 commit ahead of ssvb/tinymembench:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 13, 2017
Mar 14, 2016
Jun 15, 2018
Apr 2, 2016
Apr 2, 2016
Sep 24, 2013
Sep 24, 2013
Apr 2, 2016
Mar 30, 2016
Feb 14, 2017
Sep 10, 2011
Sep 10, 2011
Mar 31, 2016
Mar 29, 2016
Mar 29, 2016
Mar 30, 2016
Feb 13, 2017
Sep 23, 2013

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

About

Simple benchmark for memory throughput and latency

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 67.9%
  • Assembly 31.3%
  • Makefile 0.8%