Run details:
Mozilla/5.0 (Windows NT 10.0; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Windows
Desktop
2 years ago
Test name Executions per second
Length 10 temp swap 10395540.0 Ops/sec
Length 10 destructuring swap 7870564.0 Ops/sec
Length 100 temp swap 5243753.5 Ops/sec
Length 100 destructuring swap 4117267.5 Ops/sec
Length 1000 temp swap 111250.4 Ops/sec
Length 1000 destructuring swap 112319.2 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