Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Chrome 92
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Length 10 temp swap 1404443.4 Ops/sec
Length 10 destructuring swap 1434456.6 Ops/sec
Length 100 temp swap 1301944.5 Ops/sec
Length 100 destructuring swap 1347949.1 Ops/sec
Length 1000 temp swap 858362.2 Ops/sec
Length 1000 destructuring swap 869075.7 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


;