benchmark.bash: double write length

Writing 1000 128KB blocks takes only 1 second and yielded
inconsistent results. With 2000, things look saner.
This commit is contained in:
Jakob Unterwurzacher 2016-11-26 12:36:55 +01:00
parent 0f8d3318a3
commit 10884603d8
2 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
All test performed on tmpfs, /tmp/a mounted on /tmp/b.
The used test archive is https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
(mirror: http://ftp.linux.org.uk/pub/linux/linux-3.0/linux-3.0.tar.gz).
The untar test uses https://cdn.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz .
The archive is placed on tmpfs as well.
WRITE: dd if=/dev/zero of=zero bs=128K count=1000
UNTAR: time tar xfz ../linux-3.0.tar.gz
WRITE: dd if=/dev/zero of=zero bs=128K count=2000
UNTAR: time tar xzf ../linux-3.0.tar.gz
LS: time ls -lR linux-3.0 > /dev/null
RM: time rm -Rf linux-3.0

View File

@ -28,7 +28,7 @@ function etime {
}
echo -n "WRITE: "
dd if=/dev/zero of=zero bs=128K count=1000 2>&1 | tail -n 1
dd if=/dev/zero of=zero bs=128K count=2000 2>&1 | tail -n 1
rm zero
sleep 1
echo -n "UNTAR: "