Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Ubuntu
Desktop
3 years ago
Test name Executions per second
Length 10 temp swap 2636948.5 Ops/sec
Length 10 destructuring swap 1953943.2 Ops/sec
Length 100 temp swap 915532.4 Ops/sec
Length 100 destructuring swap 814120.0 Ops/sec
Length 1000 temp swap 76434.1 Ops/sec
Length 1000 destructuring swap 72217.5 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