fgerg

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var a = "a";
    var b = "b";
    var c = "c";
    var d = "d";
    var e = "e";
    var f = "f";
    var g = "g";
    var h = "h";
    var i = "i";
    var j = "j";
    var k = "k";
    var l = "l";
    var m = "m";
    var n = "n";
    var o = "o";
    var p = "p";
    var q = "q";
    var r = "r";
    var s = "s";
    var t = "t";
    var u = "u";
    var v = "v";
    var w = "w";
    var x = "x";
    var y = "y";
    var z = "z";
    var test1a,test1b,test1c,test2a,test2b,test2c;
};
</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
test1a = a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z;
test1b = a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z;
test1c = a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z;
pending…
2
test2a=a;
test2a+=b;
test2a+=c;
test2a+=d;
test2a+=e;
test2a+=f;
test2a+=g;
test2a+=h;
test2a+=i;
test2a+=j;
test2a+=k;
test2a+=l;
test2a+=m;
test2a+=n;
test2a+=o;
test2a+=p;
test2a+=q;
test2a+=r;
test2a+=s;
test2a+=t;
test2a+=u;
test2a+=v;
test2a+=w;
test2a+=x;
test2a+=y;
test2a+=z;
test2b=a;
test2b+=b;
test2b+=c;
test2b+=d;
test2b+=e;
test2b+=f;
test2b+=g;
test2b+=h;
test2b+=i;
test2b+=j;
test2b+=k;
test2b+=l;
test2b+=m;
test2b+=n;
test2b+=o;
test2b+=p;
test2b+=q;
test2b+=r;
test2b+=s;
test2b+=t;
test2b+=u;
test2b+=v;
test2b+=w;
test2b+=x;
test2b+=y;
test2b+=z;
test2c=a;
test2c+=b;
test2c+=c;
test2c+=d;
test2c+=e;
test2c+=f;
test2c+=g;
test2c+=h;
test2c+=i;
test2c+=j;
test2c+=k;
test2c+=l;
test2c+=m;
test2c+=n;
test2c+=o;
test2c+=p;
test2c+=q;
test2c+=r;
test2c+=s;
test2c+=t;
test2c+=u;
test2c+=v;
test2c+=w;
test2c+=x;
test2c+=y;
test2c+=z;
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