for or while odd

Benchmark created by mpalpha on


Test runner

Ready to run.

Testing in
TestOps/sec
reverse while modulus
var i = 100;
while (i--, !! i) {
  return (i % 2) && i;
}
ready
for add
for (i = 1; i < 100; i + 2) {
  return i;
}
ready

Revisions

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

  • Revision 1: published by mpalpha on
  • Revision 2: published by mpalpha on