Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Length 10 temp swap 1422927.2 Ops/sec
Length 10 destructuring swap 1429467.0 Ops/sec
Length 100 temp swap 1332696.8 Ops/sec
Length 100 destructuring swap 1362752.0 Ops/sec
Length 1000 temp swap 849429.9 Ops/sec
Length 1000 destructuring swap 864009.3 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


;