~~ vs >> vs parseInt (bitwise operators) (v4)

Revision 4 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
NOT
~~2.353753958395;
ready
SHIFT
2.353753958395 >> 0;
ready
parseInt
parseInt(2.353753958395, 10);
ready
floor
Math.floor(2.353753958395);
ready
AND
2.353753958395 | 0;
ready

Revisions

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