summaryrefslogtreecommitdiff
path: root/disk-benchmark
blob: 77475cfbd51cdabfaaf1d281d821b9ba6b5e480e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

for i in {0..4}; do
echo
echo "WRITE SPEED"
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
echo

echo "READ SPEED"
echo 3 > /proc/sys/vm/drop_caches
dd if=tempfile of=/dev/null bs=1M count=1024
echo

echo "BUFFERED READ SPEED"
dd if=tempfile of=/dev/null bs=1M count=1024

rm tempfile
done