Script Preparation code:
Tests:

Historical Performance Data aggregated from 15 community runs

Desktop Results:
Chrome 15 runs
unshift
32K/s
sort
18K/s

Fastest: unshift (1.8x faster)

View exact numbers
  • unshift: 32,363 ops/sec
  • sort: 18,333 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
    sort
    unshift

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124 on Windows
View result in a separate tab
unshift
34K/s
sort
20K/s
View exact numbers
Test name Executions per second
unshift 33,999 Ops/sec
sort 19,679 Ops/sec