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.
24 lines
460 B
Makefile
24 lines
460 B
Makefile
PORTNAME= tinymembench
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.4
|
|
CATEGORIES= benchmarks
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Simple benchmark for memory throughput and latency
|
|
WWW= https://github.com/ssvb/tinymembench
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= gmake
|
|
USE_GCC= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ssvb
|
|
|
|
PLIST_FILES= bin/tinymembench
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|