PHP Hash Performance by jsylvanus
Performance tests on various PHP hash functions: hash('md4',str), md5(str), hash('md5',str), sha1(str), hash('sha1',str). Each test is run 10,000 times to get a min/avg/max time.
Sign up today and make your own lists
Whether you need to get organized or have something you want to share, if there's more than one of something you can use Listy.us to list it.
| Test | 10kb | 100kb | 1000kb |
|---|---|---|---|
md5($str) (winner) |
|
|
|
hash('md4',$str) |
|
|
|
hash('md5',$str) |
|
|
|
sha1($str) |
|
|
|
hash('sha1',$str) |
|
|
|