Math.max.apply vs Math.max with spread vs basic for loop vs for loop length caching| Test case name | Result |
|---|---|
| Math.max.apply | |
| Math.max with spread | |
| basic for loop | |
| for loop length caching |
| Test name | Executions per second |
|---|---|
| ✓ basic for loop | 641,387 Ops/sec |
| for loop length caching | 630,776 Ops/sec |
| Math.max with spread | 34,956 Ops/sec |
| Math.max.apply | 34,893 Ops/sec |