summaryrefslogtreecommitdiff
path: root/benchmarks/flops
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-10-22 05:26:33 +0000
committergarbled <garbled@pkgsrc.org>1998-10-22 05:26:33 +0000
commit71b5fe5f373a382703667ea951e3e06e30cc6b51 (patch)
treeefba7e7b668bdc3aeb187214ed49ab697ea96837 /benchmarks/flops
parente2a3852512a4314cd4d9fd39325f3b77c54d91fe (diff)
downloadpkgsrc-71b5fe5f373a382703667ea951e3e06e30cc6b51.tar.gz
Initital import of flops-2.0 benchmark.
a floating point benchmark to give your MFLOPS rating.
Diffstat (limited to 'benchmarks/flops')
-rw-r--r--benchmarks/flops/Makefile30
-rw-r--r--benchmarks/flops/files/md54
-rw-r--r--benchmarks/flops/pkg/COMMENT1
-rw-r--r--benchmarks/flops/pkg/DESCR13
-rw-r--r--benchmarks/flops/pkg/PLIST4
5 files changed, 52 insertions, 0 deletions
diff --git a/benchmarks/flops/Makefile b/benchmarks/flops/Makefile
new file mode 100644
index 00000000000..94bbee02669
--- /dev/null
+++ b/benchmarks/flops/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/10/22 05:26:33 garbled Exp $
+
+DISTNAME= flops
+PKGNAME= flops-2.0
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/flops/
+DISTFILES= ${DISTNAME}.c ${DISTNAME}.doc
+
+MAINTAINER= root@garbled.net
+HOMEPAGE= http://performance.netlib.org/performance/html/flops.html
+
+NO_WRKSUBDIR= yes
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} ${DISTDIR}/flops.c ${WRKSRC}/flops.c
+ ${CP} ${DISTDIR}/flops.doc ${WRKSRC}/flops.doc
+
+do-build:
+ (cd ${WRKSRC} ; cc -O2 -DUNIX -o flops flops.c -lm)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/share/doc/flops
+ ${INSTALL_DATA} ${WRKSRC}/flops.doc ${PREFIX}/share/doc/flops
+
+benchmark:
+ -@${WRKSRC}/flops
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/flops/files/md5 b/benchmarks/flops/files/md5
new file mode 100644
index 00000000000..c449089dc5b
--- /dev/null
+++ b/benchmarks/flops/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 1998/10/22 05:26:33 garbled Exp $
+
+MD5 (flops.c) = 2d6e2a28b9ee2a358b6d340389859d57
+MD5 (flops.doc) = 99656908a2598b646cf66b788c101cf8
diff --git a/benchmarks/flops/pkg/COMMENT b/benchmarks/flops/pkg/COMMENT
new file mode 100644
index 00000000000..a20c26b1d21
--- /dev/null
+++ b/benchmarks/flops/pkg/COMMENT
@@ -0,0 +1 @@
+a floating point benchmark to give your MFLOPS rating.
diff --git a/benchmarks/flops/pkg/DESCR b/benchmarks/flops/pkg/DESCR
new file mode 100644
index 00000000000..c8e1f5296cd
--- /dev/null
+++ b/benchmarks/flops/pkg/DESCR
@@ -0,0 +1,13 @@
+ Flops.c is a 'c' program which attempts to estimate your systems
+ floating-point 'MFLOPS' rating for the FADD, FSUB, FMUL, and FDIV
+ operations based on specific 'instruction mixes' (discussed below).
+ The program provides an estimate of PEAK MFLOPS performance by making
+ maximal use of register variables with minimal interaction with main
+ memory. The execution loops are all small so that they will fit in
+ any cache. Flops.c can be used along with Linpack and the Livermore
+ kernels (which exercise memory much more extensively) to gain further
+ insight into the limits of system performance. The flops.c execution
+ modules include various percent weightings of FDIV's (from 0% to 25%
+ FDIV's) so that the range of performance can be obtained when using
+ FDIV's. FDIV's, being computationally more intensive than FADD's or
+ FMUL's, can impact performance considerably on some systems.
diff --git a/benchmarks/flops/pkg/PLIST b/benchmarks/flops/pkg/PLIST
new file mode 100644
index 00000000000..d971bf612d4
--- /dev/null
+++ b/benchmarks/flops/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/10/22 05:26:33 garbled Exp $
+bin/flops
+share/doc/flops/flops.doc
+@dirrm share/doc/flops