The MD5 hashing algorithm uses a hash code which is 16 bytes long whereas SHA1 uses a hash code which is 20 bytes long.
This means that MD5 executes faster but is less secure than SHA1.
However, the security of both these algorithms has been compromized in recent years.