ev-quick-loop-test (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var ary = [1,2,3,4,5,6,7,8,9];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
~i
for (var i = ary.length, test; ~--i;) {
  test = ary[i];
}
ready
i < length
for (var i = 0, e = ary.length, test; i < e; ++i) {
  test = ary[i];
}
ready
~i --i
for (var i = ary.length - 1, test; ~i; --i) {
  test = ary[i];
}
ready
i--
for (var i = ary.length, test; i--;) {
  test = ary[i];
}
ready

Revisions

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