更新 src/alias.txt
This commit is contained in:
@@ -198,9 +198,14 @@ function wdt() {
|
|||||||
testfile_size=2048
|
testfile_size=2048
|
||||||
echo -e "\n使用默认值: ${testfile_size}MB"
|
echo -e "\n使用默认值: ${testfile_size}MB"
|
||||||
fi
|
fi
|
||||||
|
echo "------------"
|
||||||
|
echo "写入速度如下"
|
||||||
time dd if=/dev/zero of=./testfile bs=1M count=${testfile_size} oflag=direct
|
time dd if=/dev/zero of=./testfile bs=1M count=${testfile_size} oflag=direct
|
||||||
|
echo "------------"
|
||||||
|
echo "读取速度如下"
|
||||||
time dd if=./testfile of=/dev/null bs=1M
|
time dd if=./testfile of=/dev/null bs=1M
|
||||||
rm ./testfile
|
rm ./testfile
|
||||||
|
echo "测试文件已删除"
|
||||||
}
|
}
|
||||||
|
|
||||||
function din() {
|
function din() {
|
||||||
|
|||||||
Reference in New Issue
Block a user