diff options
author | garbled <garbled> | 1998-10-22 06:23:09 +0000 |
---|---|---|
committer | garbled <garbled> | 1998-10-22 06:23:09 +0000 |
commit | 99c1173a100b9e3f734144a59b28814ceb35eb58 (patch) | |
tree | 5035fe789a36d6e8ab9ec58b9e9b7cc405b12805 /benchmarks | |
parent | 2f602f4e5cbfe0c7235592712f2b15cb88d9c195 (diff) | |
download | pkgsrc-99c1173a100b9e3f734144a59b28814ceb35eb58.tar.gz |
Import of nsieve benchmark
a Sieve of Eratosthenes benchmark.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/nsieve/Makefile | 26 | ||||
-rw-r--r-- | benchmarks/nsieve/files/md5 | 3 | ||||
-rw-r--r-- | benchmarks/nsieve/pkg/COMMENT | 1 | ||||
-rw-r--r-- | benchmarks/nsieve/pkg/DESCR | 9 | ||||
-rw-r--r-- | benchmarks/nsieve/pkg/PLIST | 2 |
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 |