Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93
Windows
Desktop
3 years ago
Test name Executions per second
Length 10 temp swap 9026016.0 Ops/sec
Length 10 destructuring swap 7078481.0 Ops/sec
Length 100 temp swap 4475302.5 Ops/sec
Length 100 destructuring swap 3676317.8 Ops/sec
Length 1000 temp swap 86454.7 Ops/sec
Length 1000 destructuring swap 88802.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