自己用瀏覽器跑迴圈測試和用jsperf跑
在opera的時候結果相反
是什麼原因?哪個才是對的
jsperf測試
http://jsperf.com/md5-bechmark
瀏覽器測試
console.time('js_md5');
for(var i = 0;i < 10000;++i)
js_md5('The quick brown fox jumps over the lazy dog');
console.timeEnd('js_md5');
console.time('jkmyers_md5');
for(var i = 0;i < 10000;++i)
jkmyers_md5('The quick brown fox jumps over the lazy dog');
console.timeEnd('jkmyers_md5');