Skip to content

Instantly share code, notes, and snippets.

@powersee
Created August 3, 2020 12:32
Show Gist options
  • Save powersee/883cb6269e0f2872cadbae07049ec09c to your computer and use it in GitHub Desktop.
Save powersee/883cb6269e0f2872cadbae07049ec09c to your computer and use it in GitHub Desktop.
脚本用来测试当前目录的读写速度
#!/bin/bash
i=1
while [ $i -le 700 ];do
echo "$i"
dd if=/dev/zero of=test$i.dd bs=1M count=1024 oflag=direct,nonblock
dd if=test$i.dd of=/dev/null bs=1M iflag=direct,nonblock
i=$((i+1))
rm test*.dd
done
rm -rf test*.dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment