Math.floor vs Math.round vs parseInt vs Bitwise (v134)

Revision 134 of this benchmark created on


Description

Rounding in all form possible

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
Math.floor(934815067337773/37);
ready
Math.round
Math.round(934815067337773/37);
ready
parseInt
parseInt(934815067337773/37);
ready
Bitwise |
934815067337773 / 37 | 0;
 
ready
Bitwise
934815067337773 / 37 >> 0
ready

Revisions

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