lijia3

JavaScript performance comparison

Revision 38 of this test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    (function(){
    var a=0;
    var target,
            x = 0,
            y = 0,
        id = 0,
        ctx = null,
        currentXL = 0,
        currentXR = 620,
        initialXL = 0,
        initialY = 90,
        RightBound = 700,
        lineWidth = 620,
        guardian = false,
        isBlank = true;
    window.asd=function(){
    return a;
    }
    })()
   
    var a={a:1,       x: 0,
            y: 0,
            id: 0,
            ctx: null,
            currentXL: 0,
            currentXR: 620,
            initialXL: 0,
            initialY: 90,
            RightBound: 700,
            lineWidth: 620,
            guardian: false,
            isBlank: true,
    zxc:function(){
    return this.a
    }
    }
   
   
};
</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
1
asd()
pending…
2
a.zxc()
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment