qweqwrwetegrghjkuk

Benchmark created on


Setup

var arr=[];
    for(var i=0;i<1000;i++){
    arr[i]=i;
    }

Test runner

Ready to run.

Testing in
TestOps/sec
qwe
var count=0,curr;
for(var i=0;i<arr.length;i++){
curr=arr[i];
count+=curr;
}
ready
qweqweq
var count=0,curr;
for(var i=0;curr=arr[i];i++){
count+=curr;
}
ready

Revisions

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