Binary Right Shift vs Division

Benchmark created on


Preparation HTML

<script>
  var x = 1e9;
  var y = -1e9;
  var z;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Binary Right Shift
z = x >> 2;
ready
Negative Binary Right Shift
z = y >> 2;
ready
Division
z = x / 2;
ready
Negative Division
z = y / 2;
ready

Revisions

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