Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135
Windows
Desktop
one month ago
Test name Executions per second
Length 10 temp swap 20003584.0 Ops/sec
Length 10 destructuring swap 17895178.0 Ops/sec
Length 100 temp swap 10535365.0 Ops/sec
Length 100 destructuring swap 9919226.0 Ops/sec
Length 1000 temp swap 700112.9 Ops/sec
Length 1000 destructuring swap 884985.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