Var scoping mem usage
JavaScript performance comparison
Test case created
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Testing in unknown unknown
| Test |
Ops/sec |
function a |
function a() { var x = "Some string"; function inner() { console.log(x); } for (var i = 0; i < 1000; i++) { inner(); } }
|
pending… |
function b |
function b() { function inner() { var x = "Some string"; console.log(x); } for (var i = 0; i < 1000; i++) { inner(); } }
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
Compare results of other browsers
0 comments