1
edit
Changes
→Kezhong Liang
=Kezhong Liang=
#!/bin/bash
echo "Start to test ..."
TIME_WRITE_START=$(date +%s)
sync
TIME_WRITE_END=$(date +%s)
echo 3 > /proc/sys/vm/drop_caches
sync
dd if=test of=/dev/null bs=1024 count=1000000
TIME_READ_END=$(date +%s)
rm test
echo "--------------------------------------------------------"
TIME_WRITE_USED=$(($TIME_WRITE_END - $TIME_WRITE_START))