FreeBSD Bugzilla – Attachment 146674 Details for
Bug 193153
[NEW PORT] benchmarks/dhrystone: Computing benchmark for integer operations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
port shar
dhrystone.shar (text/plain), 4.66 KB, created by
Radim Kolar
on 2014-09-02 10:48:15 UTC
(
hide
)
Description:
port shar
Filename:
MIME Type:
Creator:
Radim Kolar
Created:
2014-09-02 10:48:15 UTC
Size:
4.66 KB
patch
obsolete
># 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: ># ># dhrystone/ ># dhrystone/Makefile ># dhrystone/distinfo ># dhrystone/files ># dhrystone/files/patch-hz ># dhrystone/files/patch-includes ># dhrystone/pkg-descr ># >echo c - dhrystone/ >mkdir -p dhrystone/ > /dev/null 2>&1 >echo x - dhrystone/Makefile >sed 's/^X//' >dhrystone/Makefile << '3a5f38f5a860eea8402247a7db0478b9' >X# Created by: Radim Kolar <hsn@sendmail.cz> >X# $FreeBSD$ >X >XPORTNAME= dhrystone >XPORTVERSION= 2.1 >XCATEGORIES= benchmarks >XMASTER_SITES= http://www.netlib.org/benchmark/ >XDISTFILES= dhry-c >X >XMAINTAINER= hsn@sendmail.cz >XCOMMENT= Computing benchmark for integer operations >X >XLICENSE= BSD2CLAUSE >X >XEXTRACT_CMD= ${MKDIR} ${WRKSRC};cd ${WRKSRC} && ${SH} >XPATCH_STRIP= -p1 >X >XPLIST_FILES= bin/dhry >X >XOPTIONS_DEFINE= DOCS >X >X.include <bsd.port.options.mk> >X >X.if ${PORT_OPTIONS:MDOCS} >XPORTDOCS= RATIONALE submit.frm README_C VARIATIONS >X.endif >X >Xdo-build: >X cd ${WRKSRC} && ${CC} ${CFLAGS} -c dhry_1.c && \ >X ${CC} ${CFLAGS} -c dhry_2.c && \ >X ${CC} -o dhry *.o >X >Xdo-install: >X ${INSTALL} ${WRKSRC}/dhry ${STAGEDIR}${PREFIX}/bin >X.if ${PORT_OPTIONS:MDOCS} >X ${MKDIR} ${STAGEDIR}${DOCSDIR} >X.for f in ${PORTDOCS} >X ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} >X.endfor >X.endif >X >X.include <bsd.port.mk> >3a5f38f5a860eea8402247a7db0478b9 >echo x - dhrystone/distinfo >sed 's/^X//' >dhrystone/distinfo << '769ee7a99e1ffc6100da0a4fa4ab34b3' >XSHA256 (dhry-c) = 038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e >XSIZE (dhry-c) = 72812 >769ee7a99e1ffc6100da0a4fa4ab34b3 >echo c - dhrystone/files >mkdir -p dhrystone/files > /dev/null 2>&1 >echo x - dhrystone/files/patch-hz >sed 's/^X//' >dhrystone/files/patch-hz << '7dd127e8aebcb2b97abb94c8446c2347' >Xdiff -Naur drystone-2.1/dhry.h drystone-patched/dhry.h >X--- drystone-2.1/dhry.h 2014-08-30 16:32:37.000000000 +0200 >X+++ drystone-patched/dhry.h 2014-08-30 16:37:44.933675426 +0200 >X@@ -385,6 +385,8 @@ >X >X #include <stdio.h> >X /* for strcpy, strcmp */ >X+#include <unistd.h> >X+ /* for sysconf */ >X >X #define Null 0 >X /* Value of a Null pointer */ >Xdiff -Naur drystone-2.1/dhry_1.c drystone-patched/dhry_1.c >X--- drystone-2.1/dhry_1.c 2014-08-30 16:32:37.000000000 +0200 >X+++ drystone-patched/dhry_1.c 2014-08-30 16:44:20.484050144 +0200 >X@@ -262,6 +262,8 @@ >X / (float) Number_Of_Runs; >X Dhrystones_Per_Second = (float) Number_Of_Runs / (float) User_Time; >X #else >X+ >X+ int HZ = sysconf(_SC_CLK_TCK); >X Microseconds = (float) User_Time * Mic_secs_Per_Second >X / ((float) HZ * ((float) Number_Of_Runs)); >X Dhrystones_Per_Second = ((float) HZ * (float) Number_Of_Runs) >7dd127e8aebcb2b97abb94c8446c2347 >echo x - dhrystone/files/patch-includes >sed 's/^X//' >dhrystone/files/patch-includes << 'e652ae5fd16769cd072562eca845e406' >Xdiff -Naur drystone-patched/dhry.h dhrystone-working/dhry.h >X--- drystone-patched/dhry.h 2014-08-30 16:37:44.933675426 +0200 >X+++ dhrystone-working/dhry.h 2014-08-30 17:22:14.124345711 +0200 >X@@ -384,7 +384,10 @@ >X /* General definitions: */ >X >X #include <stdio.h> >X+#include <string.h> >X /* for strcpy, strcmp */ >X+#include <stdlib.h> >X+ /* for malloc */ >X #include <unistd.h> >X /* for sysconf */ >X >Xdiff -Naur drystone-patched/dhry_1.c dhrystone-working/dhry_1.c >X--- drystone-patched/dhry_1.c 2014-08-30 16:44:20.484050144 +0200 >X+++ dhrystone-working/dhry_1.c 2014-08-30 17:12:06.705379492 +0200 >X@@ -28,7 +28,6 @@ >X int Arr_1_Glob [50]; >X int Arr_2_Glob [50] [50]; >X >X-extern char *malloc (); >X Enumeration Func_1 (); >X /* forward declaration necessary since Enumeration may not simply be int */ >X >X@@ -45,7 +44,6 @@ >X >X #ifdef TIMES >X struct tms time_info; >X-extern int times (); >X /* see library function "times" */ >X #define Too_Small_Time 120 >X /* Measurements should last at least about 2 seconds */ >e652ae5fd16769cd072562eca845e406 >echo x - dhrystone/pkg-descr >sed 's/^X//' >dhrystone/pkg-descr << '7b14449dfbb5c713a08846bee427e7b6' >XDhrystone benchmark >X >XDhrystone is a synthetic computing benchmark program developed in 1984 >Xby Reinhold P. Weicker intended to be representative of system (integer) >Xprogramming. The Dhrystone grew to become representative of general >Xprocessor (CPU) performance. >X >XDMIPS value is result of dhrystone test divided by 1757, results are often >Xreported in DMIPS/Mhz. >X >XWWW: http://en.wikipedia.org/wiki/Dhrystone >7b14449dfbb5c713a08846bee427e7b6 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193153
:
146543
|
146674
|
146976
|
146977