Math.sqrt vs Quakes fast inverse sqrt. Fastest: Math.sqrt (96.8x faster)
147,097 ops/sec
1,520 ops/sec
Fastest: Math.sqrt (40.8x faster)
43,586 ops/sec
1,068 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Math.sqrt | |
| Quakes fast inverse sqrt. |
| Test name | Executions per second |
|---|---|
| ✓ Math.sqrt | 1,159,810 Ops/sec |
| Quakes fast inverse sqrt. | 2,855 Ops/sec |