satazor / js-spark-md5

Lightning fast normal and incremental md5 for javascript
Do What The F*ck You Want To Public License
2.46k stars 470 forks source link

Speed comparison to js-md5 #46

Open caub opened 6 years ago

caub commented 6 years ago

https://jsfiddle.net/crl/6uaktq3s/ it seems js-md5 is faster

yosephlodamo commented 5 years ago

If you pass the ArrauBuffer instead of Uint8Array at line 26, SparkMD5.ArrayBuffer.hash(buffer); , spark-md5 is faster. https://jsfiddle.net/Lg08dup3/

caub commented 5 years ago

Yea, but in that case be fair and pass buffer to all, and then js-md5 is back 20-25% faster https://jsfiddle.net/crl/bcv1y5ju/