Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Math.max.apply 167651.0 Ops/sec
Math.max with spread 166009.8 Ops/sec
basic for loop 424531.7 Ops/sec
for loop length caching 365049.5 Ops/sec
Script Preparation code:
Tests:
  • Math.max.apply

  • Math.max with spread

  • basic for loop

  • for loop length caching