referencing

JavaScript performance comparison

Test case created and last updated

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var _Object1 = Object;
   
    var _Object2 = Object ? Object : function () {
        return null;
    };
   
    var _Object3 = Object ? function () {
        return Object();
    } : function () {
        return null;
    };
};
</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
direct
var x = Object();
pending…
reference 1
var x = _Object1();
pending…
reference 2
var x = _Object2();
pending…
reference 3
var x = _Object3();
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