Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Windows
Desktop
one year ago
Test name Executions per second
Length 10 temp swap 15325038.0 Ops/sec
Length 10 destructuring swap 13151039.0 Ops/sec
Length 100 temp swap 7297087.5 Ops/sec
Length 100 destructuring swap 6312351.5 Ops/sec
Length 1000 temp swap 565311.1 Ops/sec
Length 1000 destructuring swap 614196.0 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