Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows
Desktop
one year ago
Test name Executions per second
Length 10 temp swap 21947526.0 Ops/sec
Length 10 destructuring swap 19243004.0 Ops/sec
Length 100 temp swap 10964387.0 Ops/sec
Length 100 destructuring swap 10319339.0 Ops/sec
Length 1000 temp swap 1675834.0 Ops/sec
Length 1000 destructuring swap 1492724.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