Additions

Benchmark created by BALAJI on


Test runner

Ready to run.

Testing in
TestOps/sec
add1
var a = [0,1,2,3,4,5,6,7,8,9,10];
var b = [ 0,1,2,3,4,5,6,7,8,9,10];
var sum=0;
for (var i=0;i<15000;i++)
{
        sum = a[5] + b[i%10];
}
 
ready
add2
var a = [0,1,2,3,4,5,6,7,8,9,10];
var b = [ 0,1,2,3,4,5,6,7,8,9,10];
var sum=0;
var x=a[5];
for (var i=0;i<15000;i++)
{
        sum+=(x+=b[i%10]);
 
}
 
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by BALAJI on