lookup test

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var d1 = {
       keyA1: { keyB: 1 },
       keyA2: { keyB: 1 },
       keyA3: { keyB: 1 }
    };
   
    var tmp = { keyB: 1 };
    var d2 = {
       keyA1: tmp,
       keyA2: tmp,
       keyA3: tmp
    }
};
</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
dict lookup
d1.keyA2.keyB
pending…
dict lookup via tmp
d2.keyA2.keyB
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