home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / diagnose / megafl.arj / MEGAFLOP.TXT < prev   
Encoding:
Text File  |  1991-08-12  |  5.2 KB  |  118 lines

  1. "MEGAFLOP" Benchmark Program
  2. ----------------------------
  3.  
  4. MEGAFLOP is an MS-DOS program that measures a computer's
  5. speed in executing floating point instructions.  These
  6. instructions are common in scientific, technical, and
  7. engineering computer applications, and in some spread-
  8. sheets.  Other benchmark programs, such as Landmark and
  9. Norton's SI, do not evaluate floating point speed.
  10.  
  11. MEGAFLOP runs on MS-DOS computers with an 80286, 80386,
  12. or 80486 processor.  An Intel compatible math 
  13. coprocessor chip will be used if available; it will
  14. greatly improve your system's floating point speed.
  15.  
  16. The program measures system speed in "megaflops", which
  17. are units of one million floating point operations per
  18. second.  A floating point operation, or "FLOP", is an
  19. instruction such as a floating point add, subtract,
  20. multiply, divide, or square root, or a trigonometric
  21. function such as cosine.  Instructions such as floating
  22. point loads and stores are not FLOPs.
  23.  
  24. When you run MEGAFLOP, the first thing it does is a
  25. simple test to find out if the FFT is producing accurate
  26. numerical results.  It will print a message if the
  27. results are inaccurate;  this may indicate that your
  28. computer is malfunctioning.  If your system is otherwise
  29. running properly, and it has a coprocessor, and MEGAFLOP
  30. detects errors, the coprocessor may be defective or
  31. improperly installed.
  32.  
  33. MEGAFLOP then does the speed test using a series of FFT
  34. calculations.  The FFT's will be done until at least 5
  35. seconds have elapsed.  The test may take up to 1 minute
  36. if you are using a slow machine like a 8 MHz 80286.
  37.  
  38. Most computers without a coprocessor run at less than
  39. .025 megaflops, while those with a math chip run faster
  40. than .100 megaflop.  A 25 Mhz 80486 system runs about 1 
  41. megaflop; it has floating point instructions on the main
  42. processor chip.
  43.  
  44. MEGAFLOP determines your system's speed by counting the
  45. number of floating point instructions executed by a
  46. known algorithm, a Fast Fourier Transform (FFT), in a
  47. measured period of time.
  48.  
  49. For those who want technical details, the main part
  50. of the program is written in Microsoft C.  The FFT
  51. is done with the CFFT2F function in the shareware
  52. "FFT86" library (available in the CompuServe Microsoft 
  53. Languages forum library, C section, GO MSLANG).  The 
  54. FFT is a radix-2 Cooley-Tukey algorithm which does an 
  55. in-place transform on a complex data array.  The FFT is 
  56. written in assembler. Both forward and inverse trans-
  57. forms are done on an array of 1024 complex numbers.  The  
  58. array actually contains 2048 single precision (4 byte) 
  59. floating point numbers.  Each FFT function call executes 
  60. an average of 54,273 FLOPS, mostly adds, subtracts, and 
  61. multiplies, with frequent memory reads and writes.  Very 
  62. few trigonometric instructions are executed.  Several
  63. FFT's are done to insure that the time used is at least
  64. 5 seconds, which results in an accurate time measurement.
  65.  
  66. MEGAFLOP uses the Microsoft floating point emulation 
  67. library, which has about a 6% overhead penalty in 
  68. running software on a computer equipped with a math 
  69. coprocessor.  The emulation library will use an Intel
  70. compatible coprocessor if it is available, otherwise it
  71. will emulate coprocessor instructions with software.
  72. MEGAFLOP would actually run about 6% faster on systems
  73. with coprocessors if did not use the Microsoft
  74. emulation library, but then it would be unable to run
  75. on systems lacking the coprocessor.
  76.  
  77. MEGAFLOP is free and may be used by all, however a
  78. small donation would be appreciated.  You may upload
  79. this program and its documentation to your local BBS,
  80. and give copies to others.  Shareware dealers may
  81. charge a small fee for distributing MEGAFLOP, which
  82. when prorated to the MEGAFLOP program may not exceed $9.
  83.  
  84. For more information on MEGAFLOP or the FFT86 library,
  85. phone the author, Barrie Walker, at (604) 858-0832 or
  86. write to Vectorplex Systems, 7572 Sapphire Drive,
  87. Sardis, B.C. V2R 3A7, Canada.  CompuServe userid is
  88. 70322,3532 (not yet a frequent CompuServe user).
  89.  
  90. If your computer's MEGAFLOP speed is not on the list   
  91. below, please send the data to the author.
  92.  
  93.  
  94.  
  95.  
  96. Speed in Megaflops of Various MS-DOS Computers:
  97. -----------------------------------------------
  98.  
  99. Computer Type    cache             MEGA-    FFT
  100. processor/MHz    memory  Math Chip FLOPS   Time Comments
  101. ---------------- ------ ---------- ----- ------ -----------------------------------
  102. AST Bravo 486/25 8K int     in 486 1.131   .048 80486/25 is top dog, so far
  103. clone     286/20   none       none  .011  4.970 
  104. clone     286/10   none       none  .005  9.970
  105. clone     486/33      ?     in 486     ?      ? We all want one.
  106. clone   486SX/20      ?       none     ?      ?
  107. clone     386/33      ?   Intel387     ?      ?
  108. clone     386/33      ?   Cyrix387     ?      ?
  109. clone     386/33      ?     IIT387     ?      ?
  110. clone     386/33      ?       none     ?      ?
  111. clone  AMD386/40      ?          ?     ?      ?
  112. clone   386SX/20      ?      387SX     ?      ?
  113. clone   386SX/20      ?       none     ?      ?
  114. clone     286/20   none Intel287XL     ?      ?
  115. clone     286/20   none  AMD287/10     ?      ?
  116. clone     286/12   none       none     ?      ? a common computer
  117.  
  118.