with performance

JavaScript performance comparison

Test case created by TPMi

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var t;
    var a={b:{c:{d:"e",f:"g",h:"i",j:"k"}}}
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
straight
t=a.b.c.d;
t=a.b.c.f;
t=a.b.c.h;
t=a.b.c.j;
pending…
with
with(a.b.c){
t=d;
t=f;
t=h;
t=j;
}
pending…
var
var s = a.b.c;
t=s.d;
t=s.f;
t=s.h;
t=s.j;
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

Add a comment