JosefJezek
6/3/2013 - 8:43 AM

SSD Benchmarking

SSD Benchmarking

SSD Benchmarking

Using hdparm

hdparm -Tt /dev/sda

Using dd

cd /path/to/SSD

# Measure write speed
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc

# Measure read speed with clear the buffer-cache
echo 3 > /proc/sys/vm/drop_caches
dd if=tempfile of=/dev/null bs=1M count=1024

# Now that the last file is in the buffer, repeat the command to see the speed of the buffer-cache
dd if=tempfile of=/dev/null bs=1M count=1024

# Delete the temp file
rm tempfile

Resources