Object Reference Test

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var resp = {
      'a': {
        'b': {
          'c': {
            'd': {
              'e': {
                'f': {
                  'g': {
                    'h': {
                      'i': {
                        'j': {
    'j1': 'hfoo',
    'j2': 'bar',
    'j3': 'baz',
    'j4': 'tom'
    }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    };
};
</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
Repeated look ups
resp.a.b.c.d.e.f.g.h.i.j.j1;
resp.a.b.c.d.e.f.g.h.i.j.j2;
resp.a.b.c.d.e.f.g.h.i.j.j3;
resp.a.b.c.d.e.f.g.h.i.j.j4;
 
pending…
Temp reference
var temp = resp.a.b.c.d.e.f.g.h.i.j;
temp.j1;
temp.j2;
temp.j3;
temp.j4;
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