Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2000 15:06:04 +0800 (CST)
From:      leeym@cae.ce.ntu.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19049: new port: benchmarks/ubench
Message-ID:  <200006060706.PAA42116@bsd.caece.net>

next in thread | raw e-mail | index | archive | help

>Number:         19049
>Category:       ports
>Synopsis:       new port: benchmarks/ubench
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 00:10:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
CAE group, Civil engineering, NTU, Taiwan.
>Environment:

FreeBSD utopia.leeym.yi.org 4.0-STABLE FreeBSD 4.0-STABLE #5: Tue Jun  6 09:51:10 CST 2000     root@utopia.leeym.yi.org:/usr/src/sys/compile/UTOPIA  i386

>Description:

Unix Benchmark Utility for CPU(s) and memory.

>How-To-Repeat:

>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ubench
#	ubench/pkg
#	ubench/pkg/COMMENT
#	ubench/pkg/DESCR
#	ubench/pkg/PLIST
#	ubench/patches
#	ubench/patches/patch-aa
#	ubench/patches/patch-ac
#	ubench/patches/patch-ad
#	ubench/patches/patch-ab
#	ubench/files
#	ubench/files/md5
#	ubench/Makefile
#
echo c - ubench
mkdir -p ubench > /dev/null 2>&1
echo c - ubench/pkg
mkdir -p ubench/pkg > /dev/null 2>&1
echo x - ubench/pkg/COMMENT
sed 's/^X//' >ubench/pkg/COMMENT << 'END-of-ubench/pkg/COMMENT'
XUnix Benchmark Utility for CPU(s) and memory.
END-of-ubench/pkg/COMMENT
echo x - ubench/pkg/DESCR
sed 's/^X//' >ubench/pkg/DESCR << 'END-of-ubench/pkg/DESCR'
X  The Unix Benchmark Utility "ubench" is an attempt to introduce
Xa single measure of perfomance among computer systems running
Xvarious flavors of Unix operation system.
X  Disclaimer: ubench is distributed in the hope that it
Xwill be useful, but WITHOUT ANY WARRANTY; without even the
Ximplied warranty of MERCHANTABILITY or FITNESS FOR A
XPARTICULAR PURPOSE.
X
X  The current development release tests only
XCPU(s) and memory. In the future releases
Xthere will be tests added for disk and TCP/IP.
XUbench is taking advantage of multiple CPUs on an SMP system
Xand the results will reflect that unless ubench has been
Xinvoked with '-s' flag.
XOther factors affecting ubench results include
Xquality of the C-compiler, C-library, kernel version,
XOS scalability, amount of RAM, presence of other
Xapplications running at the same time, etc.
X
X  Ubench is executing rather senseless mathematical
Xinteger and floating-point calculations for 3 mins
Xconcurrently using several processes, and the result
XUbench CPU benchmark. The ratio of floating-point calculations
Xto integer is about 1:3.
X  Ubench will spawn about 2 concurrent processes for each CPU
Xavailable on the system. This ensures all available
Xraw CPU horsepower is used.
X  Ubench is executing rather senseless memory allocation and
Xmemory to memory copying operations for another 3 mins
Xconcurrently using several processes, and the result
XUbench MEM benchmark.
X
XSergei Viznyuk <sv@phystech.com>
END-of-ubench/pkg/DESCR
echo x - ubench/pkg/PLIST
sed 's/^X//' >ubench/pkg/PLIST << 'END-of-ubench/pkg/PLIST'
Xbin/ubench
END-of-ubench/pkg/PLIST
echo c - ubench/patches
mkdir -p ubench/patches > /dev/null 2>&1
echo x - ubench/patches/patch-aa
sed 's/^X//' >ubench/patches/patch-aa << 'END-of-ubench/patches/patch-aa'
X--- configure.orig	Mon May 29 09:46:09 2000
X+++ configure	Tue Jun  6 14:41:26 2000
X@@ -13,6 +13,7 @@
X 
X #DEFINES=-DDEBUG
X INSTALLDIR= /usr/local/bin
X+MANDIR= /usr/local/man/man8
X 
X !
X 
X@@ -114,7 +115,7 @@
X   *)
X cat <<! >> Makefile
X CC = cc
X-CFLAGS = 
X+CFLAGS = -D${SYSTEM}
X LDFLAGS = -lm
X INCLUDES = -I.
X 
X@@ -134,10 +135,10 @@
X %.o:	%.c
X 	\$(CC) \$(CFLAGS) \$(INCLUDES) -c \$<
X 
X-default: ubench
X+all: ubench
X 
X install: ubench
X-	mv -f \$(INSTALLDIR)/ubench \$(INSTALLDIR)/ubench.old
X+	install -c -m 0555 ubench.8 \$(MANDIR)
X 	install -c -m 0555 ubench \$(INSTALLDIR)
X 
X utime:	\$(utimeobjects)
END-of-ubench/patches/patch-aa
echo x - ubench/patches/patch-ac
sed 's/^X//' >ubench/patches/patch-ac << 'END-of-ubench/patches/patch-ac'
X--- membench.c.orig	Tue Jun  6 14:33:33 2000
X+++ membench.c	Tue Jun  6 14:34:29 2000
X@@ -41,7 +41,7 @@
X #define sys_errlist _sys_errlist
X #endif
X 
X-#ifdef SunOS
X+#if defined SunOS || defined FreeBSD
X extern		sigjmp_buf	env;
X #else
X extern		jmp_buf	env;
END-of-ubench/patches/patch-ac
echo x - ubench/patches/patch-ad
sed 's/^X//' >ubench/patches/patch-ad << 'END-of-ubench/patches/patch-ad'
X--- signals.c.orig	Tue Jun  6 14:33:33 2000
X+++ signals.c	Tue Jun  6 14:35:08 2000
X@@ -22,7 +22,7 @@
X #include <signal.h>
X #include <setjmp.h>
X 
X-#ifdef SunOS
X+#if defined SunOS || defined FreeBSD
X sigjmp_buf	env;
X #else
X jmp_buf		env;
END-of-ubench/patches/patch-ad
echo x - ubench/patches/patch-ab
sed 's/^X//' >ubench/patches/patch-ab << 'END-of-ubench/patches/patch-ab'
X--- cpubench.c.orig	Tue Jun  6 14:33:33 2000
X+++ cpubench.c	Tue Jun  6 14:34:40 2000
X@@ -41,7 +41,7 @@
X #define sys_errlist _sys_errlist
X #endif
X 
X-#ifdef SunOS
X+#if defined SunOS || defined FreeBSD
X extern		sigjmp_buf	env;
X #else
X extern		jmp_buf	env;
END-of-ubench/patches/patch-ab
echo c - ubench/files
mkdir -p ubench/files > /dev/null 2>&1
echo x - ubench/files/md5
sed 's/^X//' >ubench/files/md5 << 'END-of-ubench/files/md5'
XMD5 (ubench-0.31.tar.gz) = 1a6c5fec5922dda91dae38833e3caedd
END-of-ubench/files/md5
echo x - ubench/Makefile
sed 's/^X//' >ubench/Makefile << 'END-of-ubench/Makefile'
X# New ports collection makefile for:	ubench
X# Date created:				June 6th 2000
X# Whom:	      				Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ubench
XPORTVERSION=	0.31
XCATEGORIES=	benchmarks
XMASTER_SITES=	ftp://metalab.unc.edu/pub/Linux/system/benchmark/ \
X		http://linuxberg.concepts.nl/files/console/system/ 
X
XMAINTAINER=	leeym@cae.ce.ntu.edu.tw
X
XGNU_CONFIGURE=	yes
XMAN8=		ubench.8
X
X.include <bsd.port.mk>
END-of-ubench/Makefile
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006060706.PAA42116>