asc vs desc for (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
asc
(function() {
  var sum = 0;
  for (var i = 0; i < 1000; ++i) {
    sum += i;
  }
  return sum;
})();
ready
desc
(function() {
  var sum = 0;
  for (var i = 1000; i > 0; --i) {
    sum += i;
  }
  return sum;
})();
ready

Revisions

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