diff --git a/benchmarks/bytebench/Makefile b/benchmarks/bytebench/Makefile new file mode 100644 index 00000000000..ca59e7328bd --- /dev/null +++ b/benchmarks/bytebench/Makefile @@ -0,0 +1,36 @@ +# OpenBSD makefile for: bytebench +# Version required: +# Date created: 1 December 1997 +# Whom: Angelos D. Keromytis +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/02 01:41:23 angelos Exp $ +# + +DISTNAME= bytebench-3.1 +CATEGORIES= benchmarks +MASTER_SITES= ftp://ftp.inria.fr/system/benchmark/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= angelos@openbsd.org + +do-install: + -${MKDIR} $(PREFIX)/lib/bytebench + for f in Makefile README Run doc pgms results testdir; \ + do ${CP} -R $(WRKSRC)/$$f $(PREFIX)/lib/bytebench; done + echo "#!/bin/sh" > $(PREFIX)/bin/bytebench + echo "TMPDIR=\$${TMPDIR-/var/tmp}" >> $(PREFIX)/bin/bytebench + echo "RESULTDIR=/tmp" >> $(PREFIX)/bin/bytebench + echo "export TMPDIR RESULTDIR" >> $(PREFIX)/bin/bytebench + echo "cd $(PREFIX)/lib/bytebench" >> $(PREFIX)/bin/bytebench + echo "exec ./Run \"\$$@\"" >> $(PREFIX)/bin/bytebench + chmod 755 $(PREFIX)/bin/bytebench + chmod 644 $(PREFIX)/lib/bytebench/Makefile + chmod 644 $(PREFIX)/lib/bytebench/README + chmod 755 $(PREFIX)/lib/bytebench/Run + chmod 755 $(PREFIX)/lib/bytebench/doc + chmod 755 $(PREFIX)/lib/bytebench/pgms + chmod 755 $(PREFIX)/lib/bytebench/pgms/* + chmod 755 $(PREFIX)/lib/bytebench/results + chmod 755 $(PREFIX)/lib/bytebench/testdir + +.include diff --git a/benchmarks/bytebench/files/md5 b/benchmarks/bytebench/files/md5 new file mode 100644 index 00000000000..23a74ac768a --- /dev/null +++ b/benchmarks/bytebench/files/md5 @@ -0,0 +1 @@ +MD5 (bytebench-3.1.tar.Z) = 93c718fee38d27c050edcb3a50530b2e diff --git a/benchmarks/bytebench/patches/patch-aa b/benchmarks/bytebench/patches/patch-aa new file mode 100644 index 00000000000..ca94d39f53f --- /dev/null +++ b/benchmarks/bytebench/patches/patch-aa @@ -0,0 +1,165 @@ +*** Makefile.orig Wed Feb 5 11:08:43 1992 +--- Makefile Mon Jan 1 23:20:07 1996 +*************** +*** 25,33 **** + ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15"; + SHELL = /bin/sh +! #HZ = ???? #(read from environment) + CFLAGS = -DTIME +! OPTON = -O #optimization on (give it your best shot) +! # -- check your compiler man +! OPTOFF = -Od #optimization off -- check your compiler man + # local directories + PROGDIR = ./pgms +--- 25,34 ---- + ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15"; + SHELL = /bin/sh +! HZ = 128 + CFLAGS = -DTIME +! OPTON = -s -static -O -m486 -finline-functions -funroll-loops -fomit-frame-pointer +! #optimization on (give it your best shot) +! # -- check your compiler man +! OPTOFF = -O0 -static #optimization off -- check your compiler man + # local directories + PROGDIR = ./pgms +*************** +*** 36,40 **** + TESTDIR = ./testdir +! RESULTDIR = ./results +! TMPDIR = ./tmp + # other directories + INCLDIR = /usr/include +--- 37,41 ---- + TESTDIR = ./testdir +! # RESULTDIR = ./results +! # TMPDIR = /var/tmp + # other directories + INCLDIR = /usr/include +*** Run.orig Wed Feb 5 11:08:46 1992 +--- Run Wed Jan 3 00:13:43 1996 +*************** +*** 41,45 **** + # awk cat cc chmod comm cp date dc df echo ed expr + # kill ls make mkdir rm sed test time touch tty umask who +! # AND /bin/time + # to generate result indexes, you will also need ... + # join +--- 41,45 ---- + # awk cat cc chmod comm cp date dc df echo ed expr + # kill ls make mkdir rm sed test time touch tty umask who +! # AND /usr/bin/time + # to generate result indexes, you will also need ... + # join +*************** +*** 51,55 **** + then + # determine flavor of UNIX from number of lines generated by /bin/tim +! Fcount=`/bin/time date 2>&1 | wc -l | sed 's/ //g'` + case "$Fcount" + in +--- 51,55 ---- + then + # determine flavor of UNIX from number of lines generated by /bin/tim +! Fcount=`/usr/bin/time date 2>&1 | wc -l | sed 's/ //g'` + case "$Fcount" + in +*************** +*** 68,75 **** + export FLAVOR + # check that the required files are in the proper places +! if make check +! then : +! else make all +! fi + # + # +--- 68,75 ---- + export FLAVOR + # check that the required files are in the proper places +! #if make check +! # then : +! # else make all +! #fi + # + # +*************** +*** 93,97 **** + cd $PWD + +! TMPDIR=${HOMEDIR}/tmp + cd $TMPDIR + TMPDIR=`pwd` +--- 93,97 ---- + cd $PWD + +! TMPDIR=${TMPDIR-${HOMEDIR}/tmp} + cd $TMPDIR + TMPDIR=`pwd` +*************** +*** 304,312 **** + C) + logmsg="C Compiler Test" +! prog="looper ${looper-60} cc cctest.c" + stdout=/dev/null + repeat="$shortloop" + cleanopt="-m $TMPTIMES" +! rm -f ${TESTDIR}/cctest.o ${TESTDIR}/a.out + ;; + +--- 304,312 ---- + C) + logmsg="C Compiler Test" +! prog="looper ${looper-60} cc cctest.c -o ${TMPDIR}/a.out" + stdout=/dev/null + repeat="$shortloop" + cleanopt="-m $TMPTIMES" +! rm -f ${TESTDIR}/cctest.o ${TMPDIR}/a.out + ;; + +*************** +*** 418,426 **** + if test "$stdin" = "" + then # without redirected stdin +! /bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout + else # with redirected stdin +! /bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout + fi +- /bin/time $benchcmd + ############################################### + cd $pwd # move back home +--- 418,425 ---- + if test "$stdin" = "" + then # without redirected stdin +! /usr/bin/time $prog $opt $bgstr 2>>$TMPTIMES >>$stdout + else # with redirected stdin +! /usr/bin/time $prog $opt $bgstr <$stdin 2>>$TMPTIMES >>$stdout + fi + ############################################### + cd $pwd # move back home +*** pgms/cleanup.sh.orig Wed Feb 5 11:08:37 1992 +--- pgms/cleanup.sh Wed Jan 3 19:27:21 1996 +*************** +*** 87,92 **** + + -r) : reason for failure +! echo $1 +! echo $1 >>$LOGFILE + shift + ;; +--- 87,92 ---- + + -r) : reason for failure +! echo -e $1 +! echo -e $1 >>$LOGFILE + shift + ;; +*** pgms/multi.sh.orig Thu Jan 4 15:16:20 1996 +--- pgms/multi.sh Thu Jan 4 15:17:26 1996 +*************** +*** 15,18 **** +--- 15,19 ---- + ############################################################################### + ID="@(#)multi.sh:3.4 -- 5/15/91 19:30:24"; ++ cd $TMPDIR + for i + do diff --git a/benchmarks/bytebench/patches/patch-ab b/benchmarks/bytebench/patches/patch-ab new file mode 100644 index 00000000000..62866625324 --- /dev/null +++ b/benchmarks/bytebench/patches/patch-ab @@ -0,0 +1,19 @@ +*** src/dhry_1.c.orig Mon Dec 1 20:36:11 1997 +--- src/dhry_1.c Mon Dec 1 20:36:23 1997 +*************** +*** 78,84 **** + /* Measurements should last at least about 2 seconds */ + #endif + #ifdef TIME +! extern long time(); + /* see library function "time" */ + #define Too_Small_Time 2 + /* Measurements should last at least 2 seconds */ +--- 78,84 ---- + /* Measurements should last at least about 2 seconds */ + #endif + #ifdef TIME +! extern time_t time(); + /* see library function "time" */ + #define Too_Small_Time 2 + /* Measurements should last at least 2 seconds */ diff --git a/benchmarks/bytebench/pkg/COMMENT b/benchmarks/bytebench/pkg/COMMENT new file mode 100644 index 00000000000..5f695dc3de4 --- /dev/null +++ b/benchmarks/bytebench/pkg/COMMENT @@ -0,0 +1 @@ +The BYTE magazine benchmark suite. diff --git a/benchmarks/bytebench/pkg/DESCR b/benchmarks/bytebench/pkg/DESCR new file mode 100644 index 00000000000..fb8474c491f --- /dev/null +++ b/benchmarks/bytebench/pkg/DESCR @@ -0,0 +1,48 @@ +The BYTE benchmark suite tests several aspects of system performance. + +An article, which describes the concepts and helps understand the results +can be found in the doc directory (/usr/local/lib/bytebench/doc if you use +a PREFIX of /usr/local). + +This benchmark is quite prominent among Linux users, and there is a patched +version available from some web suite, from where results are made available, +too. + +Since they offer some results of non-Linux systems for comparison, they might +be interested in FreeBSD reports, too ;-) + + +Quoting from "README.submittal" of the Linux version of this benchmark suite: + +% Please e-mail test results along with platform info to: +% +% results@silkroad.com +% +% Included CPU info, speed, RAM, and host adapter and bus +% info as well as any special compilation flags. +% +% See TEMPLATE Below.... +% +% results will be included in the URL: +% +% http://www.silkroad.com/bass/linux/bm.html +% +% +% Thanks, +% +% Tim Bass (bass@silkroad.com) + +Example: + +CPU/Speed: Pentium 100 +Ram: 32M EDO Ram +Motherboard: ASUS blah blah +Bus: 4 PCI, 4 ISA +Cache: 256K sync-burst +Controller: PCI - Adaptec 2940W ctrler +Disk: 1.08 Gig Fujitsu SCSI-III (Wide SCSI) +Load: 1 user, running pppd and httpd +Kernel: FreeBSD-2.1R +pgms: gcc 2.6.3 compiled; + options = -s -static -O -m486 -finline-functions \ + funroll-loops -fomit-frame-pointer diff --git a/benchmarks/bytebench/pkg/PLIST b/benchmarks/bytebench/pkg/PLIST new file mode 100644 index 00000000000..32c956709dd --- /dev/null +++ b/benchmarks/bytebench/pkg/PLIST @@ -0,0 +1,44 @@ +bin/bytebench +lib/bytebench/Run +lib/bytebench/pgms/looper +lib/bytebench/pgms/cleanup.sh +lib/bytebench/pgms/fs.awk +lib/bytebench/pgms/index.awk +lib/bytebench/pgms/index.base +lib/bytebench/pgms/index.sh +lib/bytebench/pgms/loopm.awk +lib/bytebench/pgms/loops.awk +lib/bytebench/pgms/multi.sh +lib/bytebench/pgms/report.awk +lib/bytebench/pgms/report.sh +lib/bytebench/pgms/tst.sh +lib/bytebench/pgms/arithoh +lib/bytebench/pgms/register +lib/bytebench/pgms/short +lib/bytebench/pgms/int +lib/bytebench/pgms/long +lib/bytebench/pgms/float +lib/bytebench/pgms/double +lib/bytebench/pgms/hanoi +lib/bytebench/pgms/fstime +lib/bytebench/pgms/syscall +lib/bytebench/pgms/context1 +lib/bytebench/pgms/pipe +lib/bytebench/pgms/spawn +lib/bytebench/pgms/execl +lib/bytebench/pgms/dhry2 +lib/bytebench/pgms/dhry2reg +lib/bytebench/pgms/byte.logo +lib/bytebench/Makefile +lib/bytebench/README +lib/bytebench/doc/bench3.doc +lib/bytebench/doc/bench.doc +lib/bytebench/results/reports.shar +lib/bytebench/testdir/dc.dat +lib/bytebench/testdir/cctest.c +lib/bytebench/testdir/sort.src +@dirrm lib/bytebench/doc +@dirrm lib/bytebench/results +@dirrm lib/bytebench/pgms +@dirrm lib/bytebench/testdir +@dirrm lib/bytebench