Roundig tests

Benchmark created on


Preparation HTML

<script>
  var a = 31,
      b = 5;
  
  function floor() {
   return Math.floor(a / b);
  }
  
  function bitop() {
   return (a / b) | 0;
  }
  
  function bitflip() {
   return~~ (a / b);
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
floor()
ready
bitop
bitop();
ready
bitflip
bitflip();
ready

Revisions

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