Math.floor vs Bitwise OR

Benchmark created on


Description

Which is the faster operation on a number?

Test runner

Ready to run.

Testing in
TestOps/sec
Math.floor
Math.floor(Math.PI)
ready
Bitwise OR
Math.PI | 0
ready

Revisions

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