sadfajsfljklaf

JavaScript performance comparison

Test case created by viclib

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    a = (function(){
        var n$=function self(k$,l$){
                var q$=0;
                var r$=k$*l$;
                for(var p$=[],s$=q$;s$ < r$;++s$)
                        p$[p$.length]=s$;
                var o$=p$;
                return o$;
        };
        var m$=n$;
        return m$;
    })()
   
    b = (function() {
      return function(c, d) {
        for (var e = c * d, a = [], b = 0;b < e;++b) {
          a[a.length] = b;
        }
        return 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
a
a(1000,1000)
pending…
b
b(1000,1000)
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