Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site oddjob.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!oddjob!rfl
From: rfl@oddjob.UUCP (Bob Loewenstein)
Newsgroups: net.micro.mac
Subject: the challenge
Message-ID: <1020@oddjob.UUCP>
Date: Tue, 29-Oct-85 12:41:49 EST
Article-I.D.: oddjob.1020
Posted: Tue Oct 29 12:41:49 1985
Date-Received: Wed, 30-Oct-85 07:28:47 EST
Distribution: net
Organization: U. Chicago, Astronomy & Astrophysics
Lines: 31

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.