tilde vs floor (v11)

Revision 11 of this benchmark created by Jack Rugile on


Description

Comparison between ~~ and Math.floor

Preparation HTML

<script>
  var x = 3.14;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
tildes
var y = ~~x;
ready
floor
var y = Math.floor(x);
ready
round
var y = Math.round(x);
ready
ceil
var y = Math.ceil(x);
ready

Revisions

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