Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
2 years ago
Test name Executions per second
Length 10 temp swap 1745186.2 Ops/sec
Length 10 destructuring swap 1335685.4 Ops/sec
Length 100 temp swap 1031025.4 Ops/sec
Length 100 destructuring swap 849561.3 Ops/sec
Length 1000 temp swap 28846.8 Ops/sec
Length 1000 destructuring swap 28628.1 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