Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101
Linux
Desktop
2 years ago
Test name Executions per second
Length 10 temp swap 428749.4 Ops/sec
Length 10 destructuring swap 442304.8 Ops/sec
Length 100 temp swap 401486.1 Ops/sec
Length 100 destructuring swap 400603.8 Ops/sec
Length 1000 temp swap 271654.4 Ops/sec
Length 1000 destructuring swap 278077.8 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