Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site dataio.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!uw-june!entropy!dataio!bright From: bright@dataio.UUCP (Walter Bright) Newsgroups: net.lang.c Subject: Re: Re: Need 286 "C" benchmark Message-ID: <669@dataio.UUCP> Date: Wed, 29-May-85 12:37:04 EDT Article-I.D.: dataio.669 Posted: Wed May 29 12:37:04 1985 Date-Received: Sat, 1-Jun-85 00:28:24 EDT Reply-To: bright@dataio.UUCP (Walter Bright) Organization: Data I/O Corp., Redmond WA Lines: 20 In article <433@oakhill.UUCP> davet@oakhill.UUCP (Dave Trissel) writes: > >Ok I will. Here's another dinky benchmark which I just compiled and ran on >my Macintosh. Lets hear some 286 times for it (and no excuses please.) > >int a[50000]; > >main() >{ > int i; > for (i=0; i<50000; i++) a[i+1] = a[i]; >} One ought to be careful whether one is benchmarking the CPU or the compiler. I have seen different compilers for the same CPU give differences in execution speed of up to a factor of 2.5. For anyone not believing this, for the 68000 we have the Greenhills optimizing compiler versus the usual PCC based ones. For the 8088 we have the new Microsoft compiler versus the Telecon. All C compilers are not created equal, some are not even close!