rfl@oddjob.UUCP (Bob Loewenstein) (10/29/85)
ok. I ran THE challenge of writing and reading a 32k file. Here are my
results for writing a random binary file from memory to the internal 3.5"
drive and reading it back into memory (including opening and closing
the file):
32k byte read: 1.75 seconds
32k byte write: 4.30 seconds
The code was written in Neon, and included is the code:
hex
basicstr buffer
new: buffer
8000 setsize: buffer
new: loadfile
" test" name: topfile
new: topfile drop
hex
start: systimer open: topfile drop
ptr: buffer 8000 write: topfile
close: topfile 2drop decimal print: systimer
hex
start: systimer open: topfile drop
ptr: buffer 8000 read: topfile close: topfile
decimal print: systimer
I ran these two routines a number of times and the quoted times are
representative. The variation in time was only 1/4 second and depended
on whether the file existed first for the write.