Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Mac OS X 10.15.7
Desktop
6 months ago
Test name Executions per second
2 spreading and executing Math.min() and Math.max() 14399.9 Ops/sec
1 spreading and executing Math.min() and Math.max() 17864.1 Ops/sec
No spreading and executing .reduce one time 16070.3 Ops/sec
Script Preparation code:
Tests:
  • 2 spreading and executing Math.min() and Math.max()

  • 1 spreading and executing Math.min() and Math.max()

  • No spreading and executing .reduce one time


;