Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Windows 7
Desktop
one year ago
Test name Executions per second
Math.max.apply 41075.3 Ops/sec
Math.max with spread 36292.4 Ops/sec
basic for loop 143524.3 Ops/sec
for loop length caching 165388.4 Ops/sec
Script Preparation code:
Tests:
  • Math.max.apply

  • Math.max with spread

  • basic for loop

  • for loop length caching