Tests:

Historical Performance Data aggregated from 35 community runs

Desktop Results:
Chrome 35 runs
immutable with concat
11.0M/s
direct mutation with splice + spread
10.9M/s
View exact numbers
  • immutable with concat: 10,966,749 ops/sec
  • direct mutation with splice + spread: 10,906,682 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
    immutable with concat
    direct mutation with splice + spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
immutable with concat
13.3M/s
direct mutation with splice + spread
12.0M/s
View exact numbers
Test name Executions per second
immutable with concat 13,337,671 Ops/sec
direct mutation with splice + spread 11,961,159 Ops/sec