自己用浏览器跑循环测试和用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');