Script Preparation code:
Tests:

Historical Performance Data aggregated from 23 community runs

Desktop Results:
Chrome 16 runs
Test Spread operator
1.4M/s
Test Object.assign
1.3M/s
Test New Object
796K/s
Test Object.create
523K/s

Fastest: Test Spread operator (2.6x faster)

View exact numbers
  • Test Spread operator: 1,384,262 ops/sec
  • Test Object.assign: 1,262,455 ops/sec
  • Test New Object: 795,779 ops/sec
  • Test Object.create: 522,858 ops/sec
Firefox 7 runs
Test Object.assign
5.2M/s
Test Spread operator
4.6M/s
Test Object.create
1.2M/s
Test New Object
1.0M/s

Fastest: Test Object.assign (5.1x faster)

View exact numbers
  • Test Object.assign: 5,167,806 ops/sec
  • Test Spread operator: 4,640,504 ops/sec
  • Test Object.create: 1,177,602 ops/sec
  • Test New Object: 1,004,150 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
    Test New Object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0
Firefox 142 on Windows
View result in a separate tab
Test Object.assign
9.6M/s
Test Spread operator
8.4M/s
Test Object.create
1.9M/s
Test New Object
1.8M/s
View exact numbers
Test name Executions per second
Test Object.assign 9,617,136 Ops/sec
Test Spread operator 8,364,710 Ops/sec
Test Object.create 1,930,596 Ops/sec
Test New Object 1,782,910 Ops/sec