Math.floor vs BitwiseFastest: Bitwise (2.1x faster)
67,208,808 ops/sec
31,767,204 ops/sec
Fastest: Bitwise (10.7x faster)
630,804,608 ops/sec
58,889,524 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Math.floor | |
| Bitwise |
| Test name | Executions per second |
|---|---|
| ✓ Math.floor | 196,273,344 Ops/sec |
| Bitwise | 190,635,584 Ops/sec |