home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / OS2TEST.ZIP / OS2TEST.DOC next >
Text File  |  1988-05-18  |  2KB  |  38 lines

  1.                       Real/Protected/Multitask Comparisons
  2.                 (For OS/2 owners who can't do much with it yet)
  3.                                  J.P.Davis
  4.                                  5/11/88
  5.  
  6. Having recently started to play with IBM OS/2 v1.0 and Microsoft Basic
  7. Compiler 6.0, which permits compiling to "real" or "protected" mode, I
  8. thought I'd try some speed tests.  A simple formula is run in a continuous
  9. loop and number of iterations, time, and iterations per unit time are
  10. printed to screen at the user's prompt.  Thus, real vs protected vs
  11. both vs multi-copies may be looked at.
  12.  
  13. Note that the protected.exe will only load in the OS/2 mode and the real.exe
  14. only in DOS mode.  Further, multi-copies of protected.exe may be loaded and
  15. run concurrently but only one copy of real.exe may be loaded since OS/2 has
  16. but one "DOS BOX".  However, the real.exe may be moved from foreground
  17. to background and reverse.  Remember that when the real.exe is moved to
  18. background its running is SUSPENDED, in contrast to protected.exe which
  19. keeps running in either foreground OR background - but at different speeds.
  20.  
  21. A warning.  Don't place more significance on speed results for these various
  22. combinations than you should.  For example, string manipulations may
  23. respond differently than the little number-cruncher used in these programs.
  24. Also, let the individual runs go for at least 10 seconds or so.  Beyond
  25. that time increment, the iterations per unit time should have settled down
  26. to a reasonably constant value.
  27.  
  28. R-TEST.BAS and P-TEST.BAS are identical except for the titles.  The .exe's
  29. were compiled from the command line using either real or protected mode and
  30. used the /EX(epack) option with the Microsoft Basic Compiler 6.0.
  31.  
  32. The above programs use a DO:LOOP WHILE INKEY$="".  OS2 seems to be exception-
  33. ally sluggish compared to DOS in looping through this keyboard input test.
  34. If a FOR-NEXT LOOP is used OS2 is on a speed par with DOS.  Thus, general-
  35. izations on speed are VERY suspect for OS2/DOS type comparisons and depend
  36. closely on the specifics of the test.
  37.  
  38.