Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Test Spread operator
34.1M/s
Test Object.assign
1.7M/s
Test Object.create
490K/s

Fastest: Test Spread operator (69.6x faster)

View exact numbers
  • Test Spread operator: 34,112,868 ops/sec
  • Test Object.assign: 1,667,937 ops/sec
  • Test Object.create: 489,988 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
    Test Spread operator
    Test Object.create
    Test Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 YaBrowser/25.10.0.0 Safari/537.36
Yandex Browser 25 on Mac OS X 10.15.7
View result in a separate tab
Test Spread operator
90.7M/s
Test Object.assign
26.1M/s
Test Object.create
2.0M/s
View exact numbers
Test name Executions per second
Test Spread operator 90,694,368 Ops/sec
Test Object.assign 26,061,110 Ops/sec
Test Object.create 1,974,650 Ops/sec