Open main menu

CDOT Wiki β

Changes

Winter 2009 SYA810 Block Device Benchmark Scripts

4 bytes removed, 09:40, 2 February 2009
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))
1
edit