Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
swapping
8K/s
unshift
12/s

Fastest: swapping (685.1x faster)

View exact numbers
  • swapping: 8,329 ops/sec
  • unshift: 12 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
    unshift
    swapping

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Chrome Mobile 134 on Android
View result in a separate tab
swapping
6K/s
unshift
6/s
View exact numbers
Test name Executions per second
swapping 5,666 Ops/sec
unshift 6 Ops/sec