BENCHMARKS OF COMPAQ 386 MODEL 40 (16 MHz 80386, 8 MHz 80287, 42 Mbyte CDC hard disk) -------------------------------------------------- This base model comes with 1 Mbyte of memory in the form of 256k chips (36 of them) marked AAA 2800P-8. The brand is "NMBS" (Japan). Memory is addressed as 32-bit words, and expands to 10 Mbytes in a single slot. The rest of the bus is 16 bits wide, compatible with PC/AT.) ------------- The following version of the Sieve of Eratosthenes executes in 0.62 sec when compiled under Microsoft C 4.0 with /AS (small model) and /G2 (80286 code) switches: #include #define SIZE 8190 #define NITERS 10 #define FALSE 0 #define TRUE 1 char flag[SIZE+1]; main() { register int i, prime, k, count, iter; printf("%d iterations:", NITERS); for( iter=1; iter <= NITERS; iter++ ) { count = 0; for( i=0; i <= SIZE; i++ ) flag[i] = TRUE; for( i=0; i <= SIZE; i++ ) { if( flag[i] ) { prime = i + i + 3; k = i + prime; while ( k <= SIZE ) { flag[k] = FALSE; k += prime; } count++; } } } printf("\n%d primes found.\n", count); } If k is listed first in the declarations, MS C actually makes it a register variable, and execution time decreases to 0.59 sec. ----------- The standard Whetstone program in Fortran, compiled under IBM Professional Fortran 1.00, runs in 5.71 seconds, producing 175,000 Whetstones/sec. (A VAX 11/780 is said to produce about the same, though I haven't tested it myself.) This program was described by Curnow and Wichmann, in The Computer Journal, Volume 19, #1. ------------ The Dhrystone benchmark, originally written in ADA by Reinhold Weicker, is being distributed in a C version over UseNet by Rick Richardson (ihnp4!castor!pcrat!rick). Here are some of the results from version 1.1 of that C program: * MACHINE MICROPROCESSOR OPERATING COMPILER DHRYSTONES/SEC. * TYPE SYSTEM NO REG REGS * --------------------------------------------------- ---------- --------- * Apple IIe 65C02-1.02Mhz DOS 3.3 Aztec CII v1.05i 37 37 * - Z80-2.5Mhz CPM-80 v2.2 Aztec CII v1.05g 91 91 * - 8086-8Mhz RMX86 V6 Intel C-86 V2.0 197 203 LM? * IBM PC/XT 8088-4.77Mhz COHERENT 2.3.43 Mark Wlms 259 275 * - 8086-8Mhz RMX86 V6 Intel C-86 V2.0 287 304 ?? * Fortune 32:16 68000-6Mhz V7+sys3+4.1BSD cc 360 346 * PDP-11/34A w/FP-11C UNIX V7m cc 406 449 * Macintosh512 68000-7.7Mhz Mac ROM O/S DeSmet(C ware) 625 625 * VAX-11/750 w/FPA UNIX 4.2BSD cc 831 852 * DataMedia 932 68000-10Mhz UNIX sysV cc 837 888 * Plexus P35 68000-12.5Mhz UNIX sysIII cc 835 894 * ATT PC7300 68010-10Mhz UNIX 5.0.3 cc 973 1034 * Compaq II 80286-8Mhz MSDOS 3.1 MS C 3.0 1086 1140 LM * IBM PC/AT 80286-7.5Mhz Venix/286 SVR2 cc 1159 1254 *15 * Compaq II 80286-8Mhz MSDOS 3.1 MS C 3.0 1190 1282 MM * MicroVAX II - Mach/4.3 cc 1361 1385 * DEC uVAX II - Ultrix-32m v1.1 cc 1385 1399 * Compaq II 80286-8Mhz MSDOS 3.1 MS C 3.0 1351 1428 * VAX 11/780 - UNIX 4.2BSD cc 1417 1441 * VAX-780/MA780 Mach/4.3 cc 1428 1470 * VAX 11/780 - UNIX 5.0.1 cc 4.1.1.31 1650 1640 * Ridge 32C V1 - ROS 3.3 Ridge C (older) 1628 1695 * Gould PN6005 - UTX 1.1c+ (4.2) cc 1732 1884 >> Compaq 386 80386-16MHz MSDOS 3.1 MS C 4.0 Not optimized 2400 2580 MM >> Compaq 386 80386-16MHz MSDOS 3.1 MS C 4.0 Optimized 2720 2840 MM >> Compaq 386 80386-16MHz MSDOS 3.1 MS C 4.0 Not optimized 2790 3010 SM >> Compaq 386 80386-16MHz MSDOS 3.1 MS C 4.0 Optimized 3140 3380 SM * Gould PN9080 custom ECL UTX-32 1.1C cc 4745 4992 * VAX-784 - Mach/4.3 cc 5263 5555 &4 * VAX 8600 - 4.3 BSD cc 6329 6423 * Amdahl 5860 - UTS sysV cc 1.22 28735 28846 * IBM3090/200 - ? ? 31250 31250 (MM stands for medium model; SM for small model) ------------ The CORE hard-disk testing program, version 1.0 (sometimes called DISKSPD), gives the following results on the hard disk: Average access, track-to-track : 4.39 ms Average access, random and t-to-t : 12.36 ms Average access, random : 20.2 ms Version 2.7 of this program (sometimes called CORETEST) gives these results: Size : 42.6 Mbytes; Heads : 5; Cylinders : 979; Sectors : 17 ; Data : 977 Kbytes; Data transfer rate : 234.6 Kbytes / sec Average seek time (979 cyls) : 26.1 ms; Track-to-track seek : 4.1 ms Performance index : 3.503