diff options
author | msaitoh <msaitoh@pkgsrc.org> | 2012-12-04 10:32:53 +0000 |
---|---|---|
committer | msaitoh <msaitoh@pkgsrc.org> | 2012-12-04 10:32:53 +0000 |
commit | 22573180244da66ab52489643a85bdf98651505b (patch) | |
tree | 5722a1a96fac3e6ed748136a7eb6598cb070d7ad /benchmarks | |
parent | 3cc728e80b9e957cb5f81c3d52ca4c9e776fd251 (diff) | |
download | pkgsrc-22573180244da66ab52489643a85bdf98651505b.tar.gz |
Import ramspeed-2.6.0 as benchmarks/ramspeed.
RAMspeed, a cache and memory benchmarking tool
(for uniprocessor machines running UNIX-like operating systems).
This command line utility measures effective bandwidth of both cache and memory
subsystems. It has been written entirely in C for portability purposes, though
benchmark routines are also available in several assembly languages for
performance reasons.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/ramspeed/DESCR | 7 | ||||
-rw-r--r-- | benchmarks/ramspeed/Makefile | 33 | ||||
-rw-r--r-- | benchmarks/ramspeed/PLIST | 2 | ||||
-rw-r--r-- | benchmarks/ramspeed/distinfo | 6 | ||||
-rw-r--r-- | benchmarks/ramspeed/patches/patch-aa | 24 |
5 files changed, 72 insertions, 0 deletions
diff --git a/benchmarks/ramspeed/DESCR b/benchmarks/ramspeed/DESCR new file mode 100644 index 00000000000..5916365cb45 --- /dev/null +++ b/benchmarks/ramspeed/DESCR @@ -0,0 +1,7 @@ +RAMspeed, a cache and memory benchmarking tool +(for uniprocessor machines running UNIX-like operating systems). + +This command line utility measures effective bandwidth of both cache and memory +subsystems. It has been written entirely in C for portability purposes, though +benchmark routines are also available in several assembly languages for +performance reasons. diff --git a/benchmarks/ramspeed/Makefile b/benchmarks/ramspeed/Makefile new file mode 100644 index 00000000000..492ac2901b4 --- /dev/null +++ b/benchmarks/ramspeed/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 2012/12/04 10:32:53 msaitoh Exp $ +# + +DISTNAME= ramspeed-2.6.0 +CATEGORIES= benchmarks +MASTER_SITES= http://alasir.com/software/ramspeed/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://alasir.com/software/ramspeed/ +COMMENT= RAMspeed, a cache and memory benchmarking tool + +MAKE_JOBS_SAFE= no + +BUILD_TARGET= default + +INSTALLATION_DIRS= bin + +do-build: + (cd ${WRKSRC} ; ./build.sh) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ramspeed ${DESTDIR}${PREFIX}/bin + +benchmark: + -@${WRKSRC}/ramspeed -b 1 | tee ${WRKSRC}/ramspeed.out + -@${WRKSRC}/ramspeed -b 2 | tee -a ${WRKSRC}/ramspeed.out + -@${WRKSRC}/ramspeed -b 3 | tee -a ${WRKSRC}/ramspeed.out + -@${WRKSRC}/ramspeed -b 4 | tee -a ${WRKSRC}/ramspeed.out + -@${WRKSRC}/ramspeed -b 5 | tee -a ${WRKSRC}/ramspeed.out + -@${WRKSRC}/ramspeed -b 6 | tee -a ${WRKSRC}/ramspeed.out +# And some other CPU dependent tests. + +.include "../../mk/bsd.pkg.mk" diff --git a/benchmarks/ramspeed/PLIST b/benchmarks/ramspeed/PLIST new file mode 100644 index 00000000000..6670f3ba309 --- /dev/null +++ b/benchmarks/ramspeed/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2012/12/04 10:32:53 msaitoh Exp $ +bin/ramspeed diff --git a/benchmarks/ramspeed/distinfo b/benchmarks/ramspeed/distinfo new file mode 100644 index 00000000000..c95f2d87800 --- /dev/null +++ b/benchmarks/ramspeed/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2012/12/04 10:32:53 msaitoh Exp $ + +SHA1 (ramspeed-2.6.0.tar.gz) = 8f071abc0b654785eafab37edd59a085e8add789 +RMD160 (ramspeed-2.6.0.tar.gz) = 997c437c359d3f9f9264768e64584e7c430e8d3a +Size (ramspeed-2.6.0.tar.gz) = 77531 bytes +SHA1 (patch-aa) = 7c8cddcf5929ffdb6f60eeb996356532d8c35777 diff --git a/benchmarks/ramspeed/patches/patch-aa b/benchmarks/ramspeed/patches/patch-aa new file mode 100644 index 00000000000..d2c5ea4a4a7 --- /dev/null +++ b/benchmarks/ramspeed/patches/patch-aa @@ -0,0 +1,24 @@ +--- build.sh.orig 2006-08-29 04:21:00.000000000 +0900 ++++ build.sh 2012-12-04 18:05:13.000000000 +0900 +@@ -75,8 +75,8 @@ + then CFLAGS="-Wall -O2" + LFLAGS="-Wl,-O2 -Wl,-s" + TARGET="AMD64_ASM" +- else CFLAGS="-Wall -O" +- LFLAGS="-Wl,-O -Wl,-s" ++ else CFLAGS="-Wall -O2" ++ LFLAGS="-Wl,-O2 -Wl,-s" + TARGET="GENERIC" + fi + ;; +@@ -139,8 +139,8 @@ + echo " " + fi + +-echo "press Enter to continue or Control-C to abort" +-read ANS ++# echo "press Enter to continue or Control-C to abort" ++# read ANS + + case $TARGET in + |