(English) Unscientific benchmark of Python’s hash and checksum algorithm

ขอโทษครับ บทความนี้มีแต่เวอร์ชั่น English เท่านั้น For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Speed turned out to be an important factor in choosing a hash or a checksum algorithm, so I did some benchmarks on a 1GB in memory dataset to see what the throughput will be. The CPU used was a 2.83GHz quad core xeon. These are the results (in megabytes / second):

SHA256: 115.89

SHA512: 179.65

SHA1: 310.59

MD5: 467.58

CRC32: 903.8

Adler32: 1316.2

Share

Copyright © 2011. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *