home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
251_01
/
listings.doc
< prev
next >
Wrap
Text File
|
1987-10-29
|
1KB
|
53 lines
Listings for the four benchmarks run on Macintosh SCSI external
hardisks review by Chris Crawford and Eva White.
10 REM LineFileWrite
100 A$="12345678123456781234567812345678"
120 B$=A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$
160 OPEN "TEST" FOR OUTPUT AS #1
170 START=TIMER
180 FOR I=1 TO 1024
200 PRINT #1, B$
220 NEXT I
230 CLOSE
250 PRINT TIMER-START
260 PRINT "DONE"
300 REM LineFileRead
320 OPEN"TEST" FOR INPUT AS #1
330 START=TIMER
340 FOR I=1 TO 1024
360 B$=INPUT$(512,1)
380 NEXT I
400 CLOSE
410 PRINT TIMER-START
420 PRINT "DONE"
10 REM FragFileWrite
100 A$="12345678123456781234567812345678"
110 B$=A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$+A$
170 START=TIMER
175 FOR J=1 TO 64
180 FOR I=1 TO 16
185 C$="TEST"+STR$(I)
190 OPEN C$ FOR APPEND AS #1
200 PRINT #1, B$
210 CLOSE #1
220 NEXT I
230 NEXT J
250 PRINT TIMER-START
260 PRINT "DONE"
300 REM FragFileRead
330 START=TIMER
335 FOR I=1 TO 16
340 C$="TEST"+STR$(I)
350 OPEN C$ FOR INPUT AS #1
360 B$=INPUT$(32767,1)
385 CLOSE #1
390 NEXT I
410 PRINT TIMER-START
420 PRINT "DONE"