Script Preparation code:
Tests:

Historical Performance Data aggregated from 40 community runs

Desktop Results:
Chrome 35 runs
append
1.6M/s
unshift
1.6M/s
splice
1.4M/s
concat
1.2M/s
reverse
933K/s

Fastest: append (1.7x faster)

View exact numbers
  • append: 1,609,379 ops/sec
  • unshift: 1,552,022 ops/sec
  • splice: 1,403,964 ops/sec
  • concat: 1,218,778 ops/sec
  • reverse: 933,269 ops/sec
Firefox 5 runs
concat
6.9M/s
append
4.5M/s
unshift
3.6M/s
reverse
3.3M/s
splice
3.3M/s

Fastest: concat (2.1x faster)

View exact numbers
  • concat: 6,880,998 ops/sec
  • append: 4,458,611 ops/sec
  • unshift: 3,629,029 ops/sec
  • reverse: 3,302,087 ops/sec
  • splice: 3,251,962 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
    append
    splice
    reverse
    concat
    unshift

    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; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Windows
View result in a separate tab
append
9.5M/s
concat
9.4M/s
unshift
7.7M/s
splice
6.8M/s
reverse
6.0M/s
View exact numbers
Test name Executions per second
append 9,471,739 Ops/sec
concat 9,425,922 Ops/sec
unshift 7,654,640 Ops/sec
splice 6,814,630 Ops/sec
reverse 6,011,744 Ops/sec