mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
Initial import of ubench - yet another *nix benchmarking utility.
PR: 19049 Submitted by: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
This commit is contained in:
parent
a15cbc06b0
commit
539331c4d9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29261
20
benchmarks/ubench/Makefile
Normal file
20
benchmarks/ubench/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# New ports collection makefile for: ubench
|
||||
# Date created: 6 June 2000
|
||||
# Whom: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ubench
|
||||
PORTVERSION= 0.31
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= ftp://metalab.unc.edu/pub/Linux/system/benchmark/ \
|
||||
http://linuxberg.concepts.nl/files/console/system/
|
||||
|
||||
MAINTAINER= leeym@cae.ce.ntu.edu.tw
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
MAN8= ubench.8
|
||||
|
||||
.include <bsd.port.mk>
|
1
benchmarks/ubench/distinfo
Normal file
1
benchmarks/ubench/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ubench-0.31.tar.gz) = 1a6c5fec5922dda91dae38833e3caedd
|
38
benchmarks/ubench/files/patch-aa
Normal file
38
benchmarks/ubench/files/patch-aa
Normal file
@ -0,0 +1,38 @@
|
||||
--- configure.orig Mon May 29 04:46:09 2000
|
||||
+++ configure Tue Jun 6 16:21:42 2000
|
||||
@@ -12,7 +12,8 @@
|
||||
###############################################################################
|
||||
|
||||
#DEFINES=-DDEBUG
|
||||
-INSTALLDIR= /usr/local/bin
|
||||
+INSTALLDIR= \$(PREFIX)/bin
|
||||
+MANDIR= \$(PREFIX)/man/man8
|
||||
|
||||
!
|
||||
|
||||
@@ -113,8 +114,8 @@
|
||||
;;
|
||||
*)
|
||||
cat <<! >> Makefile
|
||||
-CC = cc
|
||||
-CFLAGS =
|
||||
+CC ?= cc
|
||||
+CFLAGS += -D${SYSTEM}
|
||||
LDFLAGS = -lm
|
||||
INCLUDES = -I.
|
||||
|
||||
@@ -134,11 +135,11 @@
|
||||
%.o: %.c
|
||||
\$(CC) \$(CFLAGS) \$(INCLUDES) -c \$<
|
||||
|
||||
-default: ubench
|
||||
+all: ubench
|
||||
|
||||
install: ubench
|
||||
- mv -f \$(INSTALLDIR)/ubench \$(INSTALLDIR)/ubench.old
|
||||
- install -c -m 0555 ubench \$(INSTALLDIR)
|
||||
+ \$(BSD_INSTALL_MAN) ubench.8 \$(MANDIR)
|
||||
+ \$(BSD_INSTALL_PROGRAM) ubench \$(INSTALLDIR)
|
||||
|
||||
utime: \$(utimeobjects)
|
||||
\$(CC) \$(CFLAGS) \$(LDFLAGS) -o \$@ \$^
|
11
benchmarks/ubench/files/patch-ab
Normal file
11
benchmarks/ubench/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- cpubench.c.orig Tue Jun 6 14:33:33 2000
|
||||
+++ cpubench.c Tue Jun 6 14:34:40 2000
|
||||
@@ -41,7 +41,7 @@
|
||||
#define sys_errlist _sys_errlist
|
||||
#endif
|
||||
|
||||
-#ifdef SunOS
|
||||
+#if defined SunOS || defined FreeBSD
|
||||
extern sigjmp_buf env;
|
||||
#else
|
||||
extern jmp_buf env;
|
11
benchmarks/ubench/files/patch-ac
Normal file
11
benchmarks/ubench/files/patch-ac
Normal file
@ -0,0 +1,11 @@
|
||||
--- membench.c.orig Tue Jun 6 14:33:33 2000
|
||||
+++ membench.c Tue Jun 6 14:34:29 2000
|
||||
@@ -41,7 +41,7 @@
|
||||
#define sys_errlist _sys_errlist
|
||||
#endif
|
||||
|
||||
-#ifdef SunOS
|
||||
+#if defined SunOS || defined FreeBSD
|
||||
extern sigjmp_buf env;
|
||||
#else
|
||||
extern jmp_buf env;
|
11
benchmarks/ubench/files/patch-ad
Normal file
11
benchmarks/ubench/files/patch-ad
Normal file
@ -0,0 +1,11 @@
|
||||
--- signals.c.orig Tue Jun 6 14:33:33 2000
|
||||
+++ signals.c Tue Jun 6 14:35:08 2000
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
-#ifdef SunOS
|
||||
+#if defined SunOS || defined FreeBSD
|
||||
sigjmp_buf env;
|
||||
#else
|
||||
jmp_buf env;
|
1
benchmarks/ubench/pkg-comment
Normal file
1
benchmarks/ubench/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Unix Benchmark Utility for CPU(s) and memory
|
23
benchmarks/ubench/pkg-descr
Normal file
23
benchmarks/ubench/pkg-descr
Normal file
@ -0,0 +1,23 @@
|
||||
The Unix Benchmark Utility "ubench" is an attempt to introduce a single measure
|
||||
of perfomance among computer systems running various flavors of Unix operation
|
||||
system.
|
||||
|
||||
The current development release tests only CPU(s) and memory. In the future
|
||||
releases there will be tests added for disk and TCP/IP. Ubench is taking
|
||||
advantage of multiple CPUs on an SMP system and the results will reflect that.
|
||||
|
||||
o Ubench is executing rather senseless mathematical integer and floating-point
|
||||
calculations for 3 mins concurrently using several processes, and the result
|
||||
Ubench CPU benchmark.
|
||||
|
||||
o Ubench will spawn about 2 concurrent processes for each CPU available on the
|
||||
system. This ensures all available raw CPU horsepower is used.
|
||||
|
||||
o Ubench is executing rather senseless memory allocation and memory to memory
|
||||
copying operations for another 3 mins concurrently using several processes,
|
||||
and the result Ubench MEM benchmark.
|
||||
|
||||
WWW: http://www.phystech.com/download/ubench.html
|
||||
|
||||
--
|
||||
Sergei Viznyuk <sv@phystech.com>
|
1
benchmarks/ubench/pkg-plist
Normal file
1
benchmarks/ubench/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
bin/ubench
|
Loading…
Reference in New Issue
Block a user