Math.max vs Ternary and operate again vs Ternary with cache| Test case name | Result |
|---|---|
| Math.max | |
| Ternary and operate again | |
| Ternary with cache |
| Test name | Executions per second |
|---|---|
| ✓ Ternary with cache | 3,394,396 Ops/sec |
| Math.max | 2,380,877 Ops/sec |
| Ternary and operate again | 2,303,230 Ops/sec |