Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Math.max(slice()) 1000 508.0 Ops/sec
iife Math.max 1000 6796.8 Ops/sec
Math.max(slice()) 10000 5.8 Ops/sec
iife Math.max 10000 661.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max(slice()) 1000

  • iife Math.max 1000

  • Math.max(slice()) 10000

  • iife Math.max 10000


;