Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Length 10 temp swap
    Length 10 destructuring swap
    Length 100 temp swap
    Length 100 destructuring swap
    Length 1000 temp swap
    Length 1000 destructuring swap

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Chrome 135 on Windows
View result in a separate tab
Length 10 destructuring swap
24.7M/s
Length 10 temp swap
18.0M/s
Length 100 destructuring swap
13.5M/s
Length 100 temp swap
10.7M/s
Length 1000 temp swap
2.3M/s
Length 1000 destructuring swap
2.3M/s
View exact numbers
Test name Executions per second
Length 10 destructuring swap 24,715,506 Ops/sec
Length 10 temp swap 17,986,974 Ops/sec
Length 100 destructuring swap 13,495,602 Ops/sec
Length 100 temp swap 10,699,824 Ops/sec
Length 1000 temp swap 2,290,510 Ops/sec
Length 1000 destructuring swap 2,260,521 Ops/sec