modulo vs bitwise (v28)

Revision 28 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
modulo
for (var j = 0; j < 500000; j++) {
  if (j % 256 === 0) j = j;
}
ready
bitwise
for (var j = 0; j < 500000; j++) {
  if ((j & 0xFF) === 0) j = j;
}
ready

Revisions

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