summaryrefslogtreecommitdiff
path: root/benchmarks/dhrystone
diff options
context:
space:
mode:
authorgarbled <garbled>1998-08-30 17:39:21 +0000
committergarbled <garbled>1998-08-30 17:39:21 +0000
commit351d985958b0cf03ba416b5d8b882a18726f4913 (patch)
tree61e0c4349248963266db1bf61b59c4443d4334d2 /benchmarks/dhrystone
parent1632b1548f1484a470dc260283d5355da483bd40 (diff)
downloadpkgsrc-351d985958b0cf03ba416b5d8b882a18726f4913.tar.gz
add new pkg dhrystone-2.1
Reinhold Weicker's DHRYSTONE 2.1 integer benchmark
Diffstat (limited to 'benchmarks/dhrystone')
-rw-r--r--benchmarks/dhrystone/Makefile20
-rw-r--r--benchmarks/dhrystone/files/md53
-rw-r--r--benchmarks/dhrystone/patches/patch-aa51
-rw-r--r--benchmarks/dhrystone/pkg/COMMENT1
-rw-r--r--benchmarks/dhrystone/pkg/DESCR7
-rw-r--r--benchmarks/dhrystone/pkg/PLIST6
6 files changed, 88 insertions, 0 deletions
diff --git a/benchmarks/dhrystone/Makefile b/benchmarks/dhrystone/Makefile
new file mode 100644
index 00000000000..7df88e3459d
--- /dev/null
+++ b/benchmarks/dhrystone/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 1998/08/30 17:39:21 garbled Exp $
+
+DISTNAME= dhry2.1
+PKGNAME= dhrystone-2.1
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://gatekeeper.dec.com/pub/misc/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= root@garbled.net
+
+NO_WRKSUBDIR= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/dry2 ${PREFIX}/bin/dry2
+ ${INSTALL_PROGRAM} ${WRKSRC}/dry2reg ${PREFIX}/bin/dry2reg
+ ${MKDIR} ${PREFIX}/share/doc/dhrystone
+ ${INSTALL_MAN} ${WRKSRC}/clarify.doc ${PREFIX}/share/doc/dhrystone
+ ${INSTALL_MAN} ${WRKSRC}/Rationale ${PREFIX}/share/doc/dhrystone
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/dhrystone/files/md5 b/benchmarks/dhrystone/files/md5
new file mode 100644
index 00000000000..36c737fe845
--- /dev/null
+++ b/benchmarks/dhrystone/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/08/30 17:39:21 garbled Exp $
+
+MD5 (dhry2.1.tar.Z) = 97f7cc8a61c5a10b00dfd27199441cfa
diff --git a/benchmarks/dhrystone/patches/patch-aa b/benchmarks/dhrystone/patches/patch-aa
new file mode 100644
index 00000000000..6ec76c56169
--- /dev/null
+++ b/benchmarks/dhrystone/patches/patch-aa
@@ -0,0 +1,51 @@
+$NetBSD: patch-aa,v 1.1 1998/08/30 17:39:21 garbled Exp $
+--- Makefile.orig Tue Jul 12 12:35:06 1988
++++ Makefile Sat Aug 29 07:57:23 1998
+@@ -14,33 +14,33 @@
+ # For Microsoft C under DOS, you need a real make, not MSC make,
+ # to run this Makefile. The public domain "ndmake" will suffice.
+ #
+-CC= cl # C compiler name goes here (MSC)
++#CC= cl # C compiler name goes here (MSC)
+ CC= cc # C compiler name goes here (UNIX)
+
+-PROGS= msc # Programs to build (MSC)
++#PROGS= msc # Programs to build (MSC)
+ PROGS= unix # Programs to build (UNIX)
+
+ TIME_FUNC= -DMSC_CLOCK # Use Microsoft clock() for measurement
+-TIME_FUNC= -DTIME # Use time(2) for measurement
+-TIME_FUNC= -DTIMES # Use times(2) for measurement
+-HZ= 50 # Frequency of times(2) clock ticks
+-HZ= 60 # Frequency of times(2) clock ticks
+-HZ= 100 # Frequency of times(2) clock ticks
+-HZ= 1 # Give bogus result unless changed!
+-HZ= 60 # Frequency of times(2) clock ticks
++#TIME_FUNC= -DTIME # Use time(2) for measurement
++#TIME_FUNC= -DTIMES # Use times(2) for measurement
++#HZ= 50 # Frequency of times(2) clock ticks
++#HZ= 60 # Frequency of times(2) clock ticks
++#HZ= 100 # Frequency of times(2) clock ticks
++#HZ= 1 # Give bogus result unless changed!
++#HZ= 60 # Frequency of times(2) clock ticks
+
+ STRUCTASSIGN= # Compiler can assign structs
+-STRUCTASSIGN= -DNOSTRUCTASSIGN # Compiler cannot assign structs
++#STRUCTASSIGN= -DNOSTRUCTASSIGN # Compiler cannot assign structs
+
+ ENUMS= # Compiler does have enum type
+-ENUMS= -DNOENUMS # Compiler doesn't have enum type
++#ENUMS= -DNOENUMS # Compiler doesn't have enum type
+
+-OPTIMIZE= -Ox -G2 # Optimization Level (MSC, 80286)
+-OPTIMIZE= -O # Optimization Level (generic UNIX)
++#OPTIMIZE= -Ox -G2 # Optimization Level (MSC, 80286)
++OPTIMIZE= -O2 # Optimization Level (generic UNIX)
+
+ LFLAGS= #Loader Flags
+
+-CFLAGS= $(OPTIMIZE) $(TIME_FUNC) -DHZ=$(HZ) $(ENUMS) $(STRUCTASSIGN) $(CFL)
++CFLAGS= $(OPTIMIZE) $(TIME_FUNC) $(ENUMS) $(STRUCTASSIGN) $(CFL)
+
+ #
+ # You shouldn't need to touch the rest
diff --git a/benchmarks/dhrystone/pkg/COMMENT b/benchmarks/dhrystone/pkg/COMMENT
new file mode 100644
index 00000000000..7aebbe577cb
--- /dev/null
+++ b/benchmarks/dhrystone/pkg/COMMENT
@@ -0,0 +1 @@
+Reinhold Weicker's DHRYSTONE 2.1 integer benchmark
diff --git a/benchmarks/dhrystone/pkg/DESCR b/benchmarks/dhrystone/pkg/DESCR
new file mode 100644
index 00000000000..744552e6cb8
--- /dev/null
+++ b/benchmarks/dhrystone/pkg/DESCR
@@ -0,0 +1,7 @@
+Here is Reinhold Weicker's DHRYSTONE 2.1 benchmark, slightly modified
+by me for instrumentation purposes only. This is an integer CPU
+benchmark. The differences between 2.0 and 2.1 are minor, and
+I believe that 2.0 and 2.1 results are comparable.
+
+Best results will be achieved by running the benchmark with more than
+1 million iterations.
diff --git a/benchmarks/dhrystone/pkg/PLIST b/benchmarks/dhrystone/pkg/PLIST
new file mode 100644
index 00000000000..8eea1da851c
--- /dev/null
+++ b/benchmarks/dhrystone/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 1998/08/30 17:39:22 garbled Exp $
+bin/dry2
+bin/dry2reg
+share/doc/dhrystone/clarify.doc
+share/doc/dhrystone/Rationale
+@dirrm share/doc/dhrystone