Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows
Desktop
3 years ago
Test name Executions per second
Length 10 temp swap 6077425.5 Ops/sec
Length 10 destructuring swap 4782693.0 Ops/sec
Length 100 temp swap 1989070.0 Ops/sec
Length 100 destructuring swap 1903270.8 Ops/sec
Length 1000 temp swap 124402.3 Ops/sec
Length 1000 destructuring swap 124907.7 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