abcdefghijklmnop

JavaScript performance comparison

Test case created

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
var a=0,b=1,c,s=0;while(b<4e6){c=b+a;a=b;b=c;s+=c%2==0?c:0}console.log(s)
pending…
b
var max = 4000000;
var sum = 0;
for(var i=1, j=1; i < max && j < max;)
{
    sum += j % 2 ? 0 : j;
    var t = j;
    j = j + i;
    i = t;
}
console.log('Sum: ' + sum);
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