Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
Length 10 destructuring swap
39.2M/s
Length 10 temp swap
27.0M/s
Length 100 destructuring swap
22.9M/s
Length 100 temp swap
20.0M/s
Length 1000 destructuring swap
4.1M/s
Length 1000 temp swap
4.0M/s
View exact numbers
Test name Executions per second
Length 10 destructuring swap 39,193,448 Ops/sec
Length 10 temp swap 26,987,072 Ops/sec
Length 100 destructuring swap 22,873,678 Ops/sec
Length 100 temp swap 20,004,166 Ops/sec
Length 1000 destructuring swap 4,138,284 Ops/sec
Length 1000 temp swap 3,978,652 Ops/sec
Script Preparation code:
Tests: