home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / t / t460 / 1.ddi / PCKWIK / BENCH14.BAT < prev    next >
Encoding:
DOS Batch File  |  1985-09-28  |  4.1 KB  |  136 lines

  1. Echo Off
  2. If /%3==/GO Goto GO
  3. CLS
  4. Echo                                 PPPPPP  CCCCCCC
  5. Echo                                 PP  PP  CC    C
  6. Echo                                 PPPPPP  CC     
  7. Echo                                 PP      CC     
  8. Echo                                 PP      CC    C
  9. Echo                                 PP      CCCCCCC
  10. Echo 
  11. Echo 
  12. Echo 
  13. Echo                      RAM-Disk Benchmark -- Version 1.00    
  14. Echo 
  15. Echo 
  16. Echo 
  17. Echo                        Written by Charles Petzold for:
  18. Echo 
  19. Echo 
  20. Echo                                  PC MAGAZINE
  21. Echo                           A ZIFF-DAVIS PUBLICATION
  22. Echo 
  23. Echo 
  24. Echo 
  25. Echo                    [USE CONTROL-BREAK TO ABORT THIS TEST]
  26. Echo 
  27. Pause
  28. Cls
  29. Echo        PC Magazine RAM-Disk Benchmark
  30. Echo        ------------------------------
  31. Echo 
  32. Echo 
  33. Echo        This test requires installation of two RAM-disks of
  34. Echo        at least 160K each.  There must be 140K free space
  35. Echo        on each.  Run this program by specifying the two
  36. Echo        disk drive letters as in:
  37. Echo 
  38. Echo            %0 D: E:
  39. Echo 
  40. Echo        Two read/write tests and two read tests are performed 
  41. Echo        10 times each on a 128K file.  These tests use COPY 
  42. Echo        and reflect a 64K buffer size.  The times appear on
  43. Echo        the final screens.  From these times you can calculate
  44. Echo        separate read and write times for each of the two disks.
  45. Echo 
  46. Echo        Then, the tests are done again with COPY128 instead of
  47. Echo        COPY.  COPY128 reads and writes in 128-byte blocks.
  48. Echo 
  49. If %1/==/ Goto ERROR
  50. If %2/==/ Goto ERROR
  51. Echo 
  52. Pause
  53. Cls
  54. Echo        PC Magazine RAM-Disk Benchmark
  55. Echo        ------------------------------
  56. Echo 
  57. Echo 
  58. Echo        This is a directory of drive %1.  If you get an error
  59. Echo        message or have less than 140K available space, please
  60. Echo        Ctrl-Break out, fix the problem, and start over.
  61. Echo        (Ignore the space taken up by any file called TESTFILE.)
  62. Echo 
  63. Dir %1
  64. Echo 
  65. Echo 
  66. Pause
  67. Cls
  68. Echo        PC Magazine RAM-Disk Benchmark
  69. Echo        ------------------------------
  70. Echo 
  71. Echo 
  72. Echo        This is a directory of drive %2.  If you get an error
  73. Echo        message or have less than 140K available space, please
  74. Echo        Ctrl-Break out, fix the problem, and start over.
  75. Echo        (Ignore the space taken up by any file called TESTFILE.)
  76. Echo 
  77. Dir %2
  78. Echo 
  79. Echo 
  80. Pause
  81. Copy %0.BAT %1 >NUL
  82. Copy CR.DAT %1 >NUL
  83. Copy COPY128.COM %1 >NUL
  84. If Exist %1%0.LOG Del %1%0.LOG >NUL
  85. %1%0 %1 %2 GO Copy 64K
  86. :ERROR
  87. Echo        Re-execute this file by specifying the two drive letters.
  88. Goto END
  89. :GO
  90. If Not %4==Copy Goto MAIN 
  91. Cls
  92. Echo PC Magazine RAM-Disk Benchmark
  93. Echo ------------------------------
  94. Echo 
  95. Echo Creating 128K file on drive %1 ...
  96. Echo RAM-Disk Test >%1TESTFILE
  97. Copy %1TESTFILE + %1TESTFILE + %1TESTFILE + %1TESTFILE %2 >NUL
  98. Copy %2TESTFILE + %2TESTFILE + %2TESTFILE + %2TESTFILE %1 >NUL
  99. Copy %1TESTFILE + %1TESTFILE + %1TESTFILE + %1TESTFILE %2 >NUL
  100. Copy %2TESTFILE + %2TESTFILE + %2TESTFILE + %2TESTFILE %1 >NUL
  101. Copy %1TESTFILE + %1TESTFILE + %1TESTFILE + %1TESTFILE %2 >NUL
  102. Copy %2TESTFILE + %2TESTFILE + %2TESTFILE + %2TESTFILE %1 >NUL
  103. Copy %1TESTFILE + %1TESTFILE %2 >NUL
  104. Copy %2TESTFILE %1 >NUL
  105. :MAIN
  106. Echo 
  107. Echo 
  108. Echo Test of %5 block reads and writes
  109. Echo 
  110. Echo Copying file from drive %1 to drive %2 10 times ...
  111. Echo                 Copy from %1 to %2 10 times in %5 blocks >>%0.LOG
  112. Time 0
  113. For %%I In (x x x x x x x x x x) Do %4 %1TESTFILE %2TESTFILE >NUL
  114. Time <%1CR.DAT >>%0.LOG
  115. Echo Copying file from drive %2 to drive %1 10 times ...
  116. Echo                 Copy from %2 to %1 10 times in %5 blocks >>%0.LOG
  117. Time 0
  118. For %%I In (x x x x x x x x x x) Do %4 %2TESTFILE %1TESTFILE >NUL
  119. Time <%1CR.DAT >>%0.LOG
  120. Echo Reading file from drive %1 10 times ...
  121. Echo                 Read from drive %1 10 times in %5 blocks >>%0.LOG
  122. Time 0
  123. For %%I In (x x x x x x x x x x) Do %4 %1TESTFILE NUL >NUL
  124. Time <%1CR.DAT >>%0.LOG
  125. Echo Reading file from drive %2 10 times ...
  126. Echo                 Read from drive %2 10 times in %5 blocks >>%0.LOG
  127. Time 0
  128. For %%I In (x x x x x x x x x x) Do %4 %2TESTFILE NUL >NUL
  129. Time <%1CR.DAT >>%0.LOG
  130. If %4==Copy %0 %1 %2 GO %1Copy128 128-Byte 
  131. Cls
  132. Type %0.LOG
  133. Pause
  134. Cls
  135. :END
  136.