Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Testing in unknown unknown
Test
Ops/sec
full scope lookup
function foo(){ function bar(){ function baz(){ var res ="", _fun = fun; for(var i =0; i <1000; i++){ res += fun[i % fun.length];// not using the cached scope lookup } } baz(); } bar(); }
var fun ="weee!"; foo();
pending…
cached scope lookup
function foo(){ function bar(){ function baz(){ var res ="", _fun = fun; for(var i =0; i <1000; i++){ res += _fun[i % _fun.length];// using the cached scope lookup } } baz(); } bar(); }
0 comments