Math.ceil() vs 0 bitshiftFastest: 0 bitshift (1.1x faster)
214,550,768 ops/sec
193,333,664 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Math.ceil() | |
| 0 bitshift |
| Test name | Executions per second |
|---|---|
| ✓ 0 bitshift | 216,025,056 Ops/sec |
| Math.ceil() | 194,013,408 Ops/sec |