*BSD News Article 33319


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!quagga.ru.ac.za!Braae!g89r4222
From: csgr@cs.ru.ac.za (Geoff Rehmet)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: More info on dhrystone benchmark...
Date: 27 Jul 1994 16:53:29 GMT
Organization: Rhodes University Computing Services
Lines: 32
Message-ID: <3163e9$3vt@quagga.ru.ac.za>
References: <MARK.1057.2E352DF5@novell.business.uwo.ca>
Reply-To: csgr@cs.ru.ac.za
NNTP-Posting-Host: braae.ru.ac.za
X-Newsreader: NN version 6.5.0 #4 (NOV)

In <MARK.1057.2E352DF5@novell.business.uwo.ca> MARK@novell.business.uwo.ca (Mark_Bramwell) writes:

>I recompiled and no change.  I still get the smaller number.

>The version is dhrystone 2.1

>The tarfile on ashley.business.uwo.ca also has bonnie (measures disk speed)

You need to do more than hust recompile.  You need to make sure that HZ
is defined to be the correct value.  FreeBSD 1.1.5.1 has CLK_TCK at 128,
not 60, which is what dhrystone.c has it defined as.

best is to add 

#define HZ CLK_TCK

BTW: on a 486DX33 (running 1.1.5):
Braae:/home/g89r4222/tmp%/usr/bin/time ./dhrystone
Dhrystone time for 500000 passes = 12
This machine benchmarks at 39506 dhrystones/second
       13.35 real        12.96 user         0.07 sys
Braae:/home/g89r4222/tmp%/usr/bin/time ./dhrystone
Dhrystone time for 500000 passes = 12
This machine benchmarks at 39457 dhrystones/second
       13.31 real        12.97 user         0.06 sys

Geoff.
--
 Geoff Rehmet, Computer Science Department,   | ____   _ o         /\
  Rhodes University,  South Africa            |___  _-\_<,        / /\/\
 FreeBSD core team                            |    (*)/'(*)    /\/ /  \ \
     csgr@cs.ru.ac.za, csgr@freefall.cdrom.com, geoff@neptune.ru.ac.za