qqqwewweasd

Benchmark created by dave on


Setup

var poop = [];
    
    for(var i = 0, l = 21000; i < l; i++){
      poop[i] = 'sdasda3r23wdas3we23rdwsa23wdas23ewqdsa243ewqd';
    }

Test runner

Ready to run.

Testing in
TestOps/sec
test1
for(var i = 0, l = poop.length; i < l; i++){
   poop[i] = 'asdasd';
} 
ready
test2
var l = poop.length;
var i = 0;
while(l > i){
   poop[l] = 'asdasd';
   l--;
} 
ready

Revisions

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