Math.max vs sortFastest: Math.max (6.0x faster)
111,651 ops/sec
18,590 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Math.max | |
| sort |
| Test name | Executions per second |
|---|---|
| ✓ Math.max | 269,573 Ops/sec |
| sort | 34,318 Ops/sec |