Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Windows 7
Desktop
2 years ago
Test name Executions per second
Math.max.apply 100174.5 Ops/sec
Math.max with spread 101209.4 Ops/sec
basic for loop 512481.0 Ops/sec
for loop length caching 607277.5 Ops/sec
Script Preparation code:
Tests:
  • Math.max.apply

  • Math.max with spread

  • basic for loop

  • for loop length caching