Benchmark to time the computation of the 40th Fibonacci number.
This commit is contained in:
parent
b2d377877f
commit
0391979715
5 changed files with 34 additions and 0 deletions
26
benchmarks/fib/Makefile
Normal file
26
benchmarks/fib/Makefile
Normal file
|
@ -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"
|
3
benchmarks/fib/files/md5
Normal file
3
benchmarks/fib/files/md5
Normal file
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: md5,v 1.1.1.1 1998/10/22 05:55:46 garbled Exp $
|
||||
|
||||
MD5 (fib.c) = 586c1d6068485b84d5b355af77bb61f7
|
1
benchmarks/fib/pkg/COMMENT
Normal file
1
benchmarks/fib/pkg/COMMENT
Normal file
|
@ -0,0 +1 @@
|
|||
a mathematical benchmark
|
2
benchmarks/fib/pkg/DESCR
Normal file
2
benchmarks/fib/pkg/DESCR
Normal file
|
@ -0,0 +1,2 @@
|
|||
This benchmark times how long it takes your computer to compute the
|
||||
fourtieth Fibonacci Number.
|
2
benchmarks/fib/pkg/PLIST
Normal file
2
benchmarks/fib/pkg/PLIST
Normal file
|
@ -0,0 +1,2 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 1998/10/22 05:55:46 garbled Exp $
|
||||
bin/fib
|
Loading…
Reference in a new issue