modulo vs ~~ (v3)

Revision 3 of this benchmark created on


Setup

var pi = 3.14;

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
var final = pi - (pi % 1);
ready
~~
var final = ~~pi;
ready

Revisions

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