writing to harddisks
Posted on 2001-06-21
My app needs to check how fast data can be written to the hard-disk(s).
I tried it the cheap way before, writing 10 MB to file with FileWrite() and counting the milliseconds, but it doesn't seem to work properly since there's peaks.
10 MB written in 402 ms
10 MB written in 389 ms
10 MB written in 428 ms
10 MB written in 1689 ms.
Seems there's some caching/flushing going on (?)
Or maybe it was just the OS itself reading/writing to the disk, maybe swapping or something.
Anyways, my question is:
If you'd have to check the speed of a harddrive,
would you use FileWrite()?
Or create a FileStream?
Any suggestions welcome.