math.abs vs ternary logicalFastest: ternary logical (1.2x faster)
505,540,864 ops/sec
437,166,592 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| math.abs | |
| ternary logical |
| Test name | Executions per second |
|---|---|
| ✓ math.abs | 84,126,896 Ops/sec |
| ternary logical | 68,384,544 Ops/sec |