benchmarks: add streaming read benchmark
This commit is contained in:
parent
b9b52854c3
commit
c12a50d4c8
@ -32,16 +32,19 @@ function etime {
|
|||||||
|
|
||||||
echo -n "WRITE: "
|
echo -n "WRITE: "
|
||||||
dd if=/dev/zero of=zero bs=131072 count=2000 2>&1 | tail -n 1
|
dd if=/dev/zero of=zero bs=131072 count=2000 2>&1 | tail -n 1
|
||||||
|
sleep 0.1
|
||||||
|
echo -n "READ: "
|
||||||
|
dd if=zero of=/dev/null bs=131072 count=2000 2>&1 | tail -n 1
|
||||||
rm zero
|
rm zero
|
||||||
sleep 1
|
sleep 0.1
|
||||||
echo -n "UNTAR: "
|
echo -n "UNTAR: "
|
||||||
etime tar xzf /tmp/linux-3.0.tar.gz
|
etime tar xzf /tmp/linux-3.0.tar.gz
|
||||||
sleep 1
|
sleep 0.1
|
||||||
echo -n "MD5: "
|
echo -n "MD5: "
|
||||||
etime md5sum --quiet -c $MD5
|
etime md5sum --quiet -c $MD5
|
||||||
sleep 1
|
sleep 0.1
|
||||||
echo -n "LS: "
|
echo -n "LS: "
|
||||||
etime ls -lR linux-3.0
|
etime ls -lR linux-3.0
|
||||||
sleep 1
|
sleep 0.1
|
||||||
echo -n "RM: "
|
echo -n "RM: "
|
||||||
etime rm -Rf linux-3.0
|
etime rm -Rf linux-3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user