lijia3

JavaScript performance comparison

Revision 10 of this test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var a="1+2+3*2+1*3*3+1";
    function plus(a,b){
    return a+b;
    }
    function times(a,b){
    return a*b
    }
};
</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
eval(a)
pending…
2
plus(1,plus(2,plus(times(3,2),plus(times(1,times(3,3)),1))))
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