test cache for loops (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var obj = {
   arr: []
  }
  var i = 100;
  while (i--) obj.arr.push('a' + i);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
cached
for (var i = 0, l = obj.arr.length; i < l; ++i) {
 continue;
}
ready
uncached
for (var i = 0; i < obj.arr.length; ++i) {
 continue;
}
ready

Revisions

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