Measuring internal disk performance

matthias0820

Registered
I purchased a new NAS drive by Thecus. Many tests were reporting amazing transfer rates of about 100MB/sec read and write. As I could not achieve these rates I wanted to check my local HDD performance.

In order to do this I wrote a small script which initiates a ramdrive, creates a 400MB testfile and makes a read/write test using rsync.

Code:
echo "creating a ramdisk of size 550MB"
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`

echo "creating a 400MB testfile on the local HDD"
dd if=/dev/zero of=testfile bs=1000k count=400

echo "checking transfer HDD to RAM"
rm -f /Volumes/ramdisk/testfile
rsync -avuP testfile /Volumes/ramdisk

echo "checking transfer RAM to HDD"
rm -f testfile
rsync -avuP /Volumes/ramdisk/testfile testfile

The resulting performance for my 2 years old MacBook (MacOSX 10.5.8) is:
read from RAM to disk:
43121069.79 bytes/sec​
write from disk to RAM:
117042903.71 bytes/sec​

Can somebody confirm these rates or beat that rates with newer hardware and/or Snow Leopard?

When I write from disk to my NAS (AFP mounted) speed is about 42MB/sec. From NAS to my disk only 36MB/sec. Other protocols perform worse or equal. Network is Gbit and full-duplex.
 
Back
Top