summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-10-22 06:23:09 +0000
committergarbled <garbled@pkgsrc.org>1998-10-22 06:23:09 +0000
commitf334493bb3b08c2651df69ac0bfd6645af45c2df (patch)
tree5035fe789a36d6e8ab9ec58b9e9b7cc405b12805
parent2c85e4c18655358319f4f2e7687411aa5ba4bce0 (diff)
downloadpkgsrc-f334493bb3b08c2651df69ac0bfd6645af45c2df.tar.gz
Import of nsieve benchmark
a Sieve of Eratosthenes benchmark.
-rw-r--r--benchmarks/nsieve/Makefile26
-rw-r--r--benchmarks/nsieve/files/md53
-rw-r--r--benchmarks/nsieve/pkg/COMMENT1
-rw-r--r--benchmarks/nsieve/pkg/DESCR9
-rw-r--r--benchmarks/nsieve/pkg/PLIST2
5 files changed, 41 insertions, 0 deletions
diff --git a/benchmarks/nsieve/Makefile b/benchmarks/nsieve/Makefile
new file mode 100644
index 00000000000..a771248e9ea
--- /dev/null
+++ b/benchmarks/nsieve/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/10/22 06:23:09 garbled Exp $
+
+DISTNAME= nsieve.c
+PKGNAME= nsieve-1.2b
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/nsieve/
+EXTRACT_SUFX= #empty
+
+MAINTAINER= root@garbled.net
+
+NO_WRKSUBDIR= yes
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} ${DISTDIR}/nsieve.c ${WRKSRC}/nsieve.c
+
+do-build:
+ (cd ${WRKSRC} ; cc -O2 -DUNIX -o nsieve nsieve.c -lm)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/nsieve ${PREFIX}/bin
+
+benchmark:
+ -@${WRKSRC}/nsieve
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/nsieve/files/md5 b/benchmarks/nsieve/files/md5
new file mode 100644
index 00000000000..0ae3a9bd4ab
--- /dev/null
+++ b/benchmarks/nsieve/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/10/22 06:23:09 garbled Exp $
+
+MD5 (nsieve.c) = 6fdcc587905d7ab364b03115b5268d2e
diff --git a/benchmarks/nsieve/pkg/COMMENT b/benchmarks/nsieve/pkg/COMMENT
new file mode 100644
index 00000000000..caf15c5bdf7
--- /dev/null
+++ b/benchmarks/nsieve/pkg/COMMENT
@@ -0,0 +1 @@
+a Sieve of Eratosthenes benchmark.
diff --git a/benchmarks/nsieve/pkg/DESCR b/benchmarks/nsieve/pkg/DESCR
new file mode 100644
index 00000000000..d8608a822f7
--- /dev/null
+++ b/benchmarks/nsieve/pkg/DESCR
@@ -0,0 +1,9 @@
+This Sieve of Eratosthenes program works with variable size arrays. It is
+a straight forward extension of the original Gilbreath version (
+Gilbreath, Jim. "A High-Level Language Benchmark." BYTE, September 1981,
+p. 180, and also Gilbreath, Jim and Gary. "Eratosthenes Revisited: Once
+More Through the Sieve." BYTE January 1983, p. 283 ). Unlike the Sieve of
+Gilbreath, NSIEVE uses register long variables, pointers,and large byte
+arrays via 'malloc()'. Maximum array size is currently set at 2.56 MBytes
+but this can be increased or decreased by changing the program LIMIT
+constant.
diff --git a/benchmarks/nsieve/pkg/PLIST b/benchmarks/nsieve/pkg/PLIST
new file mode 100644
index 00000000000..7523163dac2
--- /dev/null
+++ b/benchmarks/nsieve/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/10/22 06:23:09 garbled Exp $
+bin/nsieve