Tests:

Historical Performance Data aggregated from 36 community runs

Desktop Results:
Chrome 30 runs
New object
186.5M/s
Using the spread operator
72.9M/s
Using Object.assign
50.2M/s

Fastest: New object (3.7x faster)

View exact numbers
  • New object: 186,525,808 ops/sec
  • Using the spread operator: 72,860,472 ops/sec
  • Using Object.assign: 50,222,424 ops/sec
Firefox 6 runs
New object
1934.0M/s
Using Object.assign
24.6M/s
Using the spread operator
15.2M/s

Fastest: New object (126.9x faster)

View exact numbers
  • New object: 1,934,041,472 ops/sec
  • Using Object.assign: 24,622,372 ops/sec
  • Using the spread operator: 15,235,266 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
    Using the spread operator
    Using Object.assign
    New object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36
Chrome 152 on Mac OS X 10.15.7
View result in a separate tab
New object
1044.4M/s
Using the spread operator
155.4M/s
Using Object.assign
89.0M/s
View exact numbers
Test name Executions per second
New object 1,044,408,768 Ops/sec
Using the spread operator 155,419,168 Ops/sec
Using Object.assign 89,004,232 Ops/sec