Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
Math.max.apply 197034.4 Ops/sec
Math.max with spread 193860.2 Ops/sec
basic for loop 987357.8 Ops/sec
for loop length caching 966358.8 Ops/sec
Script Preparation code:
Tests:
  • Math.max.apply

  • Math.max with spread

  • basic for loop

  • for loop length caching