Tests:

Historical Performance Data aggregated from 19 community runs

Desktop Results:
Chrome 19 runs
with mutation
8.0M/s
with spread operator
1.7M/s
with object assign
375K/s

Fastest: with mutation (21.3x faster)

View exact numbers
  • with mutation: 7,991,277 ops/sec
  • with spread operator: 1,679,302 ops/sec
  • with object assign: 374,603 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
    with spread operator
    with mutation
    with object assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_5_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/136.0.7103.91 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 136 on iOS 18.5.0
View result in a separate tab
with mutation
3.1M/s
with object assign
305K/s
with spread operator
229K/s
View exact numbers
Test name Executions per second
with mutation 3,071,735 Ops/sec
with object assign 305,275 Ops/sec
with spread operator 229,066 Ops/sec