Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
shift
16.4M/s
pop
16.1M/s
.splice(0)
12.8M/s
reassignment
11.5M/s
length
10.5M/s

Fastest: shift (1.6x faster)

View exact numbers
  • shift: 16,386,854 ops/sec
  • pop: 16,147,206 ops/sec
  • .splice(0): 12,783,494 ops/sec
  • reassignment: 11,521,710 ops/sec
  • length: 10,467,131 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    pop
    shift
    length
    reassignment
    .splice(0)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Linux
View result in a separate tab
pop
93.6M/s
shift
92.9M/s
.splice(0)
36.7M/s
length
25.2M/s
reassignment
8.9M/s
View exact numbers
Test name Executions per second
pop 93,580,616 Ops/sec
shift 92,874,864 Ops/sec
.splice(0) 36,727,884 Ops/sec
length 25,220,498 Ops/sec
reassignment 8,925,873 Ops/sec