Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Chrome 99
Linux
Desktop
2 years ago
Test name Executions per second
Length 10 temp swap 2037107.5 Ops/sec
Length 10 destructuring swap 2108883.8 Ops/sec
Length 100 temp swap 1992198.9 Ops/sec
Length 100 destructuring swap 2004510.9 Ops/sec
Length 1000 temp swap 1302372.0 Ops/sec
Length 1000 destructuring swap 1340769.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