ternary operator vs && and ||27,917,616 ops/sec
27,627,150 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| ternary operator | |
| && and || |
| Test name | Executions per second |
|---|---|
| ✓ ternary operator | 182,917,952 Ops/sec |
| && and || | 171,304,192 Ops/sec |