Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.5.1
Mobile
4 months ago
Test name Executions per second
Length 10 temp swap 2938326.8 Ops/sec
Length 10 destructuring swap 2961273.0 Ops/sec
Length 100 temp swap 2451464.5 Ops/sec
Length 100 destructuring swap 2477064.8 Ops/sec
Length 1000 temp swap 1162430.1 Ops/sec
Length 1000 destructuring swap 1177105.6 Ops/sec
Script Preparation code:
Tests:
  • Length 10 temp swap

  • Length 10 destructuring swap

  • Length 100 temp swap

  • Length 100 destructuring swap

  • Length 1000 temp swap

  • Length 1000 destructuring swap


;