Tue Dec 4 10:32:53 2012 UTC ()
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.


(msaitoh)
diff -r0 -r1.1 pkgsrc/benchmarks/ramspeed/DESCR
diff -r0 -r1.1 pkgsrc/benchmarks/ramspeed/Makefile
diff -r0 -r1.1 pkgsrc/benchmarks/ramspeed/PLIST
diff -r0 -r1.1 pkgsrc/benchmarks/ramspeed/distinfo
diff -r0 -r1.1 pkgsrc/benchmarks/ramspeed/patches/patch-aa

File Added: pkgsrc/benchmarks/ramspeed/DESCR
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.

File Added: pkgsrc/benchmarks/ramspeed/Makefile
# $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"

File Added: pkgsrc/benchmarks/ramspeed/PLIST
@comment $NetBSD: PLIST,v 1.1 2012/12/04 10:32:53 msaitoh Exp $
bin/ramspeed

File Added: pkgsrc/benchmarks/ramspeed/distinfo
$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

File Added: pkgsrc/benchmarks/ramspeed/patches/patch-aa
--- 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