floor (v10)

Revision 10 of this benchmark created by Brenden Snyder on


Preparation HTML

<script>
  var x = Math.PI, y;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
left bitshift
y = x<<0;
ready
right bitshift
y = x>>0;
ready
Math.floor
y = Math.floor(x);
ready
bitwise or
y = 0|x;
ready
rot
y = x >>> 0;
ready
bitwise not
y = ~~x;
ready

Revisions

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