Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Chrome 132
Windows
Desktop
3 months ago
Test name Executions per second
Length 10 temp swap 23495080.0 Ops/sec
Length 10 destructuring swap 30575496.0 Ops/sec
Length 100 temp swap 14638638.0 Ops/sec
Length 100 destructuring swap 12871413.0 Ops/sec
Length 1000 temp swap 1502858.2 Ops/sec
Length 1000 destructuring swap 1600518.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