Observed it many times on many Ubuntu versions. If you type wrong password either in UI mode or in terminal, it takes little more time before it declares incorrect password.
Correct password check is almost instantaneous, but incorrect password takes slightly longer. Its not lot of time, but still lot more than correct password.
Why is it so?