summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authordrochner <drochner>1998-11-13 14:00:50 +0000
committerdrochner <drochner>1998-11-13 14:00:50 +0000
commit6eed03be85d1c684c296e06b66dbe4acb39acbaa (patch)
tree887dc38100d9234967bcab18f828c431557e71f9 /benchmarks
parentd07c0ec143fd84b7a7e12004f790577f0631db07 (diff)
downloadpkgsrc-6eed03be85d1c684c296e06b66dbe4acb39acbaa.tar.gz
import HINT benchmark
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/hint/Makefile27
-rw-r--r--benchmarks/hint/files/md51
-rw-r--r--benchmarks/hint/patches/patch-aa120
-rw-r--r--benchmarks/hint/patches/patch-ab19
-rw-r--r--benchmarks/hint/pkg/COMMENT1
-rw-r--r--benchmarks/hint/pkg/DESCR21
-rw-r--r--benchmarks/hint/pkg/PLIST1
7 files changed, 190 insertions, 0 deletions
diff --git a/benchmarks/hint/Makefile b/benchmarks/hint/Makefile
new file mode 100644
index 00000000000..7ebfb8928dc
--- /dev/null
+++ b/benchmarks/hint/Makefile
@@ -0,0 +1,27 @@
+#
+# New ports collection makefile for: hint
+# Version required: 12 June 1998 (no version stamp)
+# Date created: 18 May 1998
+# Whom: ghelmer
+#
+# $Id: Makefile,v 1.1.1.1 1998/11/13 14:00:50 drochner Exp $
+#
+
+DISTNAME= hint_unix_serial
+PKGNAME= hint.serial-98.06.12
+CATEGORIES= benchmarks
+MASTER_SITES= ftp://ftp.scl.ameslab.gov/pub/HINT/source/tar/
+EXTRACT_SUFX= .tar
+
+MAINTAINER= ghelmer@freebsd.org
+
+EXTRACT_BEFORE_ARGS=-xf
+WRKSRC= ${WRKDIR}/unix
+ALL_TARGET= DOUBLE
+MAN1= hint.1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/DOUBLE ${PREFIX}/bin/hint
+ ${INSTALL_MAN} ${WRKSRC}/hint.1 ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/benchmarks/hint/files/md5 b/benchmarks/hint/files/md5
new file mode 100644
index 00000000000..eef0aad11d7
--- /dev/null
+++ b/benchmarks/hint/files/md5
@@ -0,0 +1 @@
+MD5 (hint_unix_serial.tar) = 2bbf0ca0bfcebd721621c69fa1af88fc
diff --git a/benchmarks/hint/patches/patch-aa b/benchmarks/hint/patches/patch-aa
new file mode 100644
index 00000000000..6d179572df9
--- /dev/null
+++ b/benchmarks/hint/patches/patch-aa
@@ -0,0 +1,120 @@
+*** /dev/null Fri Jun 12 13:20:02 1998
+--- hint.1 Fri Jun 12 14:14:15 1998
+***************
+*** 0 ****
+--- 1,115 ----
++ .\" Copyright 1998 Iowa State University Research Foundation, Inc.
++ .\"
++ .\" This program is free software; you can redistribute it and/or modify
++ .\" it under the terms of the GNU General Public License as published by
++ .\" the Free Software Foundation. You should have received a copy of the
++ .\" GNU General Public License along with this program; if not, write to the
++ .\" Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
++ .\"
++ .\" THIS SOFTWARE IS PROVIDED BY THE IOWA STATE UNIVERSITY RESEARCH
++ .\" FOUNDATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
++ .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++ .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
++ .\" IN NO EVENT SHALL THE IOWA STATE UNIVERSITY RESEARCH FOUNDATION BE
++ .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
++ .\" OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
++ .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++ .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
++ .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++ .\"
++ .\" Id
++ .\"
++ .Dd May 18, 1998
++ .Dt HINT 1
++ .Os
++ .Sh NAME
++ .Nm hint
++ .Nd scalable benchmark for CPU and memory
++ .Sh SYNOPSIS
++ .Nm hint
++ .Sh DESCRIPTION
++ The program
++ .Nm
++ reveals many aspects of computer performance: operation speed,
++ precision, memory bandwidth, and usable memory size. HINT measures
++ "QUIPS" (QUality Improvement Per Second) as a function of time. "Net
++ QUIPS" is a single number that summarizes the QUIPS over time.
++ .Pp
++ As provided,
++ .Nm
++ tests double-precision floating point arithmetic. The original source
++ can be re-compiled to test other data types (such as long integers).
++ The original source should be available directly from
++ .Pa ftp://ftp.scl.ameslab.gov/pub/HINT/ .
++ See
++ .Pa http://www.scl.ameslab.gov/Projects/HINT/
++ for more information on HINT, including technical reports and an
++ on-line database of HINT results.
++ .Pp
++ The output of
++ .Nm
++ is a file in the directory
++ .Pa data
++ named
++ .Pa DOUBLE
++ which contains five columns:
++ .Bl -enum
++ .It
++ Time
++ .It
++ QUIPS
++ .It
++ Quality
++ .It
++ Subintervals
++ .It
++ Memory Used
++ .El
++ .Pp
++ The first two columns are used to produce the QUIPS graph. The third
++ and fourth columns are Quality and subintervals. These columns can be
++ used to check for loss of quality due to insufficient precision and
++ poor choices of which rectangle to split. The fifth is useful for
++ finding the sizes of memory regimes, like where primary cache
++ saturates or where virtual memory is first invoked.
++ .Pp
++ The file is set up in a format suitable for
++ .Xr gnuplot 1
++ or similar plotting packages. QUIPS graphs should be plotted on a
++ semi-log scale with log of time as the horizontal axis and QUIPS as
++ the vertical axis. The following gnuplot commands would be suitable to
++ display the QUIPS graph from the file
++ .Pa data/DOUBLE :
++ .nf
++
++ set logscale x
++ plot "data/DOUBLE"
++
++ .fi
++ QUIPS vs. memory use can also be plotted to reveal memory regime sizes,
++ by using the following
++ .Xr gnuplot 1
++ command:
++ .nf
++
++ plot "data/DOUBLE" using 5:2
++
++ .fi
++
++ .Sh FILES
++ .Bl -tag -width DOUBLE -compact
++ .It Pa DOUBLE output file in the directory
++ .Pa data
++ .El
++ .Sh SEE ALSO
++ .Xr gnuplot 1
++ .Sh AUTHOR
++ .Nm HINT
++ was developed by the Scalable Computing Laboratory (SCL) of Ames Laboratory,
++ a US Department of Energy laboratory.
++ .Sh BUGS
++ .Nm
++ only writes its output file in the directory
++ .Pa data .
diff --git a/benchmarks/hint/patches/patch-ab b/benchmarks/hint/patches/patch-ab
new file mode 100644
index 00000000000..39767d5b2f0
--- /dev/null
+++ b/benchmarks/hint/patches/patch-ab
@@ -0,0 +1,19 @@
+*** hint.c.ORIG Sun May 31 15:34:52 1998
+--- hint.c Mon Jun 15 09:44:53 1998
+***************
+*** 90,96 ****
+ #ifdef DEBUG
+ curv = stdout;
+ #else
+! sprintf(filnm,"data/%s",argv[0]);
+ if ((curv = fopen(filnm, "w")) == NULL)
+ {
+ printf("Could not open data file\n");
+--- 90,96 ----
+ #ifdef DEBUG
+ curv = stdout;
+ #else
+! sprintf(filnm,"data/%s","DOUBLE");
+ if ((curv = fopen(filnm, "w")) == NULL)
+ {
+ printf("Could not open data file\n");
diff --git a/benchmarks/hint/pkg/COMMENT b/benchmarks/hint/pkg/COMMENT
new file mode 100644
index 00000000000..fb2eb19abd0
--- /dev/null
+++ b/benchmarks/hint/pkg/COMMENT
@@ -0,0 +1 @@
+A scalable benchmark for testing CPU and memory performance.
diff --git a/benchmarks/hint/pkg/DESCR b/benchmarks/hint/pkg/DESCR
new file mode 100644
index 00000000000..2f32fbfa4b0
--- /dev/null
+++ b/benchmarks/hint/pkg/DESCR
@@ -0,0 +1,21 @@
+HINT (Hierarchical INTegration) is a computer benchmarking tool
+developed at the Scalable Computing Laboratory of the Ames Laboratory,
+a US Department of Energy laboratory. Unlike traditional benchmarks,
+HINT neither fixes the size of the problem nor the calculation time.
+Instead, it uses a rigorously defined measure called QUIPS (QUality
+Improvements Per Second).
+
+The output of HINT is data which can be plotted (the gnuplot graphics
+package is useful for plotting HINT output). The plot shows the speed
+of the computation as the size of the problem increases. The HINT
+graph shows the peak processor speed and the effects of different
+levels of cache and memory on processing speed. See
+http://www.scl.ameslab.gov/Projects/HINT/ for more information and
+an on-line database of HINT results.
+
+HINT also outputs a single number which is the integral of the HINT
+curve. This number, called NetQUIPS, can be used for general
+comparison between machines.
+
+- Guy Helmer
+ghelmer@freebsd.org
diff --git a/benchmarks/hint/pkg/PLIST b/benchmarks/hint/pkg/PLIST
new file mode 100644
index 00000000000..7fc256fa22f
--- /dev/null
+++ b/benchmarks/hint/pkg/PLIST
@@ -0,0 +1 @@
+bin/hint