If you're looking to measure write IOPS, you might be better off running `dd if=/dev/zero of=$testfile bs=1 count=1000000 2>&1 | tail -n1 | awk '//{print $8}'` (or `of=/dev/$device seek=1M` if the drive in question isn't formatted).