Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
11 months ago
Test name Executions per second
Length 10 temp swap 9510778.0 Ops/sec
Length 10 destructuring swap 7856002.0 Ops/sec
Length 100 temp swap 4685685.0 Ops/sec
Length 100 destructuring swap 3329264.2 Ops/sec
Length 1000 temp swap 191014.5 Ops/sec
Length 1000 destructuring swap 169972.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