Compare loop

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Compare loop
var i = 25,
    y = 0;
while (i = i - 1) {
  y++;
}
ready
Compare loop
var i = 25,
    y = 0;
while (i -= 1) {
  y += 1;
}
ready
var i = 25,
    y = 0;
while (i--) {
  y++;
}
ready
var i = 26,
    y = 0;
while (--i) {
  y++;
}
ready

Revisions

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