Tests:

Historical Performance Data aggregated from 34 community runs

Desktop Results:
Chrome 28 runs
New object
180.3M/s
Using the spread operator
71.9M/s
Using Object.assign
49.2M/s

Fastest: New object (3.7x faster)

View exact numbers
  • New object: 180,344,576 ops/sec
  • Using the spread operator: 71,887,344 ops/sec
  • Using Object.assign: 49,213,052 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: 15 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
New object
1794.7M/s
Using Object.assign
24.4M/s
Using the spread operator
16.0M/s
View exact numbers
Test name Executions per second
New object 1,794,699,008 Ops/sec
Using Object.assign 24,439,644 Ops/sec
Using the spread operator 15,959,771 Ops/sec