Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.56 Safari/537.36 Edg/97.0.1072.41
Chrome 97
Linux
Desktop
one year ago
Test name Executions per second
Length 10 temp swap 889772.9 Ops/sec
Length 10 destructuring swap 891350.6 Ops/sec
Length 100 temp swap 832327.9 Ops/sec
Length 100 destructuring swap 823093.1 Ops/sec
Length 1000 temp swap 478247.8 Ops/sec
Length 1000 destructuring swap 478097.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


;