Search code examples
hashmd5cpubenchmarkingsha

Calculation of hash of a string (MD5, SHA) as a basis for CPU benchmarking


I know that there are many applications and tools available for benching the computational power of CPUs especially in terms of floating point and integer calculations.

What I want to know is that how good is to use the hashing functions such as MD5, SHA, ... for benchmarking CPUs? Does these functions include enough floating point and integer calculations that applying a series of those hashing functions could be a good basis for cpu becnhmarking?

In case platform matters, I'm concerned with Windows and .Net.


Solution

  • MD5 and SHA hash functions do not use floating point at all. They are completely implemented using discrete math