<<

Operating Time Computer System Language (Seconds) Contributor

IBM 3033 Assembly 0.0078 Andrew Wood IBM 3081 PUI 0.034 James Gerber IBM 3033 PL/I 0.036 James Gerber IBM 3033 COBOL 0.082 James C. Fairfield Cray -1 0.110 Kerry Chesbro IBM 4341 CMS PUI 0.135 James Gerber PERQ -1 POS Microcode 0.239 Gary Bickford IBM 3033 AP FORTRAN H 0.258 Richard Franke 68000, 8 MHz Assembly 0.49 Andrew Wood Univac 1100/82 OS 1100 FORTRAN 77 0.67 Tom Gruber

HP-85 BASIC 3084 Ronald B. Johnson PET PET BASIC 3180 Raymond Mannarelli Z80 APL 3276 Alpa K. Mehta TI 99/4 TI -BASIC 3960 Victor Dodier H -89 2 MHz BASIC 4100 Desmond J. Charron 6809 BASIC 4303 BYTE, Sept. 1981 Z80 CP /M C (tiny -c) 4720 BYTE, Sept. 1981 TRS -80 Mod III TRSDOS BASIC 4780 Matt Ewing Z80 CP /M COBOL Microsoft 5115 BYTE, Sept. 1981 Xerox 820 CP /M RMCOBOL 5740 J. Stevens Blanchard Table 2: The ten fastest and slowest systems of those tested with the Sieve of Eratosthenes prime -number program as listed in table 1. Again, execution time of the Sieve program should be regarded as only one of several considerations in choosing a particular language, , or processor.

Memory Compile Execution Compiled Used Plus Load Time Bytes (bytes) (seconds) (seconds) Pascal UCSD Pascal, Softech, IV.03 with Z80 Native -Code Generator 442 18,874 87.9 19.7

Pascal/MT+ , Digital Research, V5.5 344 3816 50.8 22.7 Pascal /Z, Ithaca Intersystems, V4.0 687 3645 75.0 31.4 UCSD Pascal, Softech, IV.03 237 18,669 46.7 156 JRT Pascal, JRT Systems, V2.0 224 22,008 34.5 383

Pascal /MT+ 86, Digital Research (8 -MHz 8086) 301 1 1,129 50.2 4.76

C Compilers C /80, Software Toolworks, V2.0 279 3106 37.2 25.4 C, Whitesmiths Ltd., V2.1 332 12,018 310 25.5 Aztec C, Manx Software, V1.04 355 8515 86.2 32.9 C, Supersoft Inc., V1.1.0 394 17,729 84.7 34.1 C, Telecon Systems 382 5751 201 37.9 BDS C, BD Software, V1.46 311 3701 20.7 39.9 (with -e and -o options) 354 3839 20.9 24.7 Q /C, Quality Computer Systems, V2.0b 361 3310 49 48.8 C, Infosoft Systems, V2.03 410 8655 96 50.8 CW /C, The Code Works, V1.0 399 1833 71 53.2 C86, Computer Innovations, V1.29B (8 -MHz 8086) 250 4097 58 7.2

Table 3: Performance of the Sieve of Eratosthenes prime -number program on several new Pascal and C compilers. Compilers are listed in order of execution speed. Memory used does not include the 8191 -byte array but does include necessary library routines and p -code interpreters.

Memory Compile Execution Compiled Used Plus Load Time Bytes (bytes) (seconds) (seconds) C Compilers BDS C, BD Software, V1.46 240 3664 20.7 15.2 C, Whitesmiths Ltd., V2.1 227 11,913 310 15.9 Aztec C, Manx Software, V1.04 219 8379 86.2 20.5 C /80, Software Toolworks, V2.0 239 3066 37.2 25.5 Q/C, Quality Computer Systems, V2.0b 253 3208 49 26.1 C, Telecon Systems 253 5622 201 27.8 C, Infosoft Systems, V2.03 279 8524 96 27.9 CW/C, The Code Works, V1.0 301 1735 71 30.3 C, Supersoft Inc., V1.1.0 360 17,695 84.7 30.9 C86, Computer Innovations, V1.29B (8 -MHz 8086) 250 4097 58 7.2 Table 4: Performance of the Sieve of Eratosthenes prime -number program on various C compilers using optimized data allocation. As in table 3, compilers are listed in order of execution speed, and memory used does not include the 8191 -byte array but does in- clude the necessary library routines.

January 1983 © BYTE Publications Inc 303