From 09f4957ea3f70b6115b7fe8ff2237869847e84d2 Mon Sep 17 00:00:00 2001 From: garbled Date: Thu, 22 Oct 1998 05:55:46 +0000 Subject: Benchmark to time the computation of the 40th Fibonacci number. --- benchmarks/fib/Makefile | 26 ++++++++++++++++++++++++++ benchmarks/fib/files/md5 | 3 +++ benchmarks/fib/pkg/COMMENT | 1 + benchmarks/fib/pkg/DESCR | 2 ++ benchmarks/fib/pkg/PLIST | 2 ++ 5 files changed, 34 insertions(+) create mode 100644 benchmarks/fib/Makefile create mode 100644 benchmarks/fib/files/md5 create mode 100644 benchmarks/fib/pkg/COMMENT create mode 100644 benchmarks/fib/pkg/DESCR create mode 100644 benchmarks/fib/pkg/PLIST (limited to 'benchmarks') diff --git a/benchmarks/fib/Makefile b/benchmarks/fib/Makefile new file mode 100644 index 00000000000..06c97aa0251 --- /dev/null +++ b/benchmarks/fib/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1.1.1 1998/10/22 05:55:46 garbled Exp $ + +DISTNAME= fib.c +PKGNAME= fib-980203 +CATEGORIES= benchmarks +MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/fib/ +EXTRACT_SUFX= #empty + +MAINTAINER= root@garbled.net + +NO_WRKSUBDIR= yes + +do-extract: + ${MKDIR} ${WRKSRC} + ${CP} ${DISTDIR}/fib.c ${WRKSRC}/fib.c + +do-build: + (cd ${WRKSRC} ; cc -O2 -DUNIX -o fib fib.c -lm) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/fib ${PREFIX}/bin + +benchmark: + -@${WRKSRC}/fib + +.include "../../mk/bsd.pkg.mk" diff --git a/benchmarks/fib/files/md5 b/benchmarks/fib/files/md5 new file mode 100644 index 00000000000..c2f28ea2f1a --- /dev/null +++ b/benchmarks/fib/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1998/10/22 05:55:46 garbled Exp $ + +MD5 (fib.c) = 586c1d6068485b84d5b355af77bb61f7 diff --git a/benchmarks/fib/pkg/COMMENT b/benchmarks/fib/pkg/COMMENT new file mode 100644 index 00000000000..fc4dd1e8e85 --- /dev/null +++ b/benchmarks/fib/pkg/COMMENT @@ -0,0 +1 @@ +a mathematical benchmark diff --git a/benchmarks/fib/pkg/DESCR b/benchmarks/fib/pkg/DESCR new file mode 100644 index 00000000000..ffce64a985a --- /dev/null +++ b/benchmarks/fib/pkg/DESCR @@ -0,0 +1,2 @@ +This benchmark times how long it takes your computer to compute the +fourtieth Fibonacci Number. diff --git a/benchmarks/fib/pkg/PLIST b/benchmarks/fib/pkg/PLIST new file mode 100644 index 00000000000..f2cef369dd9 --- /dev/null +++ b/benchmarks/fib/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1998/10/22 05:55:46 garbled Exp $ +bin/fib -- cgit v1.2.3