{"id":718,"date":"2009-10-28T17:11:36","date_gmt":"2009-10-29T00:11:36","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=718"},"modified":"2009-10-28T17:11:36","modified_gmt":"2009-10-29T00:11:36","slug":"difference-among-hasing-algorithms","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2009\/10\/28\/difference-among-hasing-algorithms\/","title":{"rendered":"Difference among hasing algorithms"},"content":{"rendered":"
I don’t think I will have to face hashing algorithms directly as I expect libraries\/servers that I’m going to use will provide the best one from their perspective, however, just curious how things are going and also to practice consistent hashing<\/a>, I wrote a simple perl script.<\/p>\n The result is pretty interesting, I know I cannot cover all test cases, but from various tests I learned:<\/p>\n Performance wise – CRC32 is the winner, MD5 is ~20% slower, SHA1 is ~33% slower. I cannot tell performance of FNV as it is a pure perl implementation while others are Perl module which means results are from C\/C++ codes.<\/p>\n This could be my last “research” on consistent hashing, I’m going to move to deployment and try out all those NoSQL solutions.<\/p>\n","protected":false},"excerpt":{"rendered":" I don’t think I will have to face hashing algorithms directly as I expect libraries\/servers that I’m going to use will provide the best one from their perspective, however, just curious how things are going and also to practice consistent hashing, I wrote a simple perl script. The result is pretty interesting, I know I […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,133],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/718"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":2,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/718\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n