Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Benchmark your SSD or hard disk speed' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Benchmark your SSD or hard disk speed
Authored by: wallybear on Jul 11, '12 04:08:32PM
To obtain speed expressed in MB/sec, just append the following string to each one of the commands:
2>&1 | grep sec | awk '{print "scale = 2 ; "$(NF-1048576) "}' | bc
i.e:
time dd if=/dev/zero bs=1024k of=tstfile count=1024 2>&1 | grep sec | awk '{print "scale = 2 ; "$(NF-1048576) "}' | bc
and
dd if=tstfile bs=1024k of=/dev/null count=1024  2>&1 | grep sec | awk '{print "scale = 2 ; "$(NF-1048576) "}' | bc
No need to google around.
Edited on Jul 11, '12 04:12:16PM by wallybear


[ Reply to This | # ]