Add flops, floating point benchmark to give your MFLOPS rating.

Inspired by:	NetBSD pkgsrc
This commit is contained in:
Alexey Dokuchaev 2005-07-06 10:02:08 +00:00
parent 2779c80962
commit 31989704f1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138569
4 changed files with 54 additions and 0 deletions

View file

@ -10,6 +10,7 @@
SUBDIR += dbench
SUBDIR += dbs
SUBDIR += dkftpbench
SUBDIR += flops
SUBDIR += forkbomb
SUBDIR += himenobench
SUBDIR += hpl

37
benchmarks/flops/Makefile Normal file
View file

@ -0,0 +1,37 @@
# New ports collection makefile for: flops
# Date created: 06 Jul 2005
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= flops
PORTVERSION= 2.0
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.nosc.mil/pub/aburto/flops/
DISTFILES= ${PORTNAME}.c ${PORTNAME}.doc
MAINTAINER= danfe@FreeBSD.org
COMMENT= Floating point benchmark to give your MFLOPS rating
PLIST_FILES= bin/flops
.if !defined(NOPORTDOCS)
PORTDOCS= flops.doc
.endif
do-extract: .SILENT
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/flops.c ${DISTDIR}/flops.doc ${WRKSRC}
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,4 @@
MD5 (flops.c) = 2d6e2a28b9ee2a358b6d340389859d57
SIZE (flops.c) = 33791
MD5 (flops.doc) = 99656908a2598b646cf66b788c101cf8
SIZE (flops.doc) = 7751

View file

@ -0,0 +1,12 @@
flops.c is a C program which attempts to estimate your system's floating-
point 'MFLOPS' rating for the FADD, FSUB, FMUL, and FDIV operations based on
specific 'instruction mixes' (discussed below). The program provides an
estimate of PEAK MFLOPS performance by making maximal use of register
variables with minimal interaction with main memory. The execution loops
are all small so that they will fit in any cache. The flops.c execution
modules include various percent weightings of FDIV's (from 0% to 25% FDIV's)
so that the range of performance can be obtained when using FDIV's. FDIV's,
being computationally more intensive than FADD's or FMUL's, can impact
performance considerably on some systems.
WWW: http://performance.netlib.org/performance/html/flops.html