Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Windows
Desktop
2 years ago
Test name Executions per second
Length 10 temp swap 12757524.0 Ops/sec
Length 10 destructuring swap 9739891.0 Ops/sec
Length 100 temp swap 5968406.0 Ops/sec
Length 100 destructuring swap 4147056.2 Ops/sec
Length 1000 temp swap 174753.8 Ops/sec
Length 1000 destructuring swap 174789.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