modulo vs bitwise (v14)

Revision 14 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
modulo
var t;
for (var j = 0; j < 18; j++) {
  if (j % 2 === 1) {
      t = j;
  }
}
ready
bitwise
var t;

for (var j = 0; j < 18; j++) {
  if (j & 1 === 1) {
      t = j;
  }
}
ready

Revisions

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