md5sum vs. cksum vs. sha1sum
I've been using md5sum to verify the transfer of a file from one server to another. Basically, I take the md5sum on the source server and compare it against the destination server.
Recently, I saw there were other methods to do this 'verification' by using cksum and sha1sum.
Below are some benchmark timings that I've done on a 1.5 GB file:
md5sum - 8.4 sec.
cksum - 8.0 sec.
sha1sum - 14.7 sec.
Correct me if I'm wrong for the following assumptions:
1. All of the checksumming methods are CPU intensive. Would anyone know which is the most CPU intensive?
2. md5sum is the more preferred method (not sure why).
So, if I only want to do a quick checksum, then can I use cksum? Or is there a faster but less reliable method to do checksum?
Thanks in advance.