test

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  var arr = [],
      i = 10000;
  
  while (i--) {
   arr.push('foo');
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Test
var len = arr.len;

while (len--) {
 arr.pop()
}
ready
Test2
var len = arr.len,
    j;

for (j = 0; j < len; j++) {
 arr.pop()
}
ready

Revisions

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