Math.Floor vs ~~ (v14)

Revision 14 of this benchmark created on


Setup

var pi = 3.14;

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
var final = Math.floor(7 / 2);
ready
~~
var final = ~~ (7 / 2);
ready
hnormal
var final = 7 / 2 - 1;
ready

Revisions

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