Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!cbmvax!daveh From: daveh@cbmvax.UUCP (Dave Haynie) Newsgroups: comp.arch Subject: Re: Dhrystone 2.1 (3 of 3) Message-ID: <5449@cbmvax.UUCP> Date: 7 Dec 88 17:58:37 GMT References: <88@stanton.TCC.COM> Organization: Commodore Technology, West Chester, PA Lines: 28 in article <88@stanton.TCC.COM>, donegan@stanton.TCC.COM (Steven P. Donegan) says: > Keywords: integer benchmark > Summary: Bogus Results? > If less than 1000000 iterations are chosen it immediately exits, > displaying a message that indicates the benchmark ran too fast (too > few iterations). If 1000000 iterations are chosen it indicates 16k > iterations are to be run then says my system has a whopping 346.1 > dhrystones per second (which is at least an order of magnitude less than > the earlier dhrystone 1.1 program). What the hell gives? Did you try something really small, like say, less than 32K iterations? Based on the last version I tried at least, the Dhrystone code is sensitive to the length of your "int". So specifying small integers, or running it on a 16 bit machine, may run you into some strange problems when the iterations go over 32K or so. Whether or not it runs or kicks out is probably based on whether the number % 65536 comes out positive or negative. Try either a smaller number of iterations, or compile it for a 32 bit machine model, if you have that option. > Steven P. Donegan These opinions are given on MY time, not > Sr. Telecommunications Analyst Western Digital's > Western Digital Corp. > stanton!donegan || donegan@stanton.TCC.COM || donegan%stanton@tcc.com -- Dave Haynie "The 32 Bit Guy" Commodore-Amiga "The Crew That Never Rests" {uunet|pyramid|rutgers}!cbmvax!daveh PLINK: D-DAVE H BIX: hazy Amiga -- It's not just a job, it's an obsession