you might also want to checkout: https://dwaves.org/2017/05/12/benchmarks-for-linux/

this benchmark tests harddisk and cpu by creating a 1GB file and meassures the time it takes to md5sum that file.

so you can calculate how long it is going to take to md5sum 1TB…

this script md5sumBenchmark.sh does it’s job but it is imcomplete… can you help correct the errors?

md5sum md5 based benchmark

mkdir /scripts; # create new folder
vim /scripts/benchmark_md5sum.sh; # create new file and open it, fill it with this content
#!/bin/bash
echo "===================== md5sum benchmark";
echo "======== generate 1GB test file";
dd if=/dev/zero of=md5sumTestFile count=1048576 bs=1024;
du -h md5sumTestFile;
time md5sum md5sumTestFile;
# removing test file
rm -rf md5sumTestFile;
# write and quit vim
:wq
chmod u+x ./scripts/benchmark_md5sum.sh; # make script executable

./scripts/benchmark_md5sum.sh; # run

results/example output:

/scripts/benchmark_md5sum.sh
md5sum benchmark...
=== your cpu is:
model name	: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
model name	: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
model name	: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
model name	: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz

=== generate 1GB test file
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 4.11544 s, 261 MB/s
1.1G	md5sumTestFile
cd573cfaace07e7949bc0c46028904ff  md5sumTestFile

real	0m2.523s <- it took 2.5sec to md5sum 1.1GByte of data,
for a single i5 core (md5sum is not multicore)
user	0m2.259s
sys	0m0.263s
admin