Script Preparation code:
Tests:

Historical Performance Data aggregated from 61 community runs

Desktop Results:
Chrome 54 runs
spread syntax
36.8M/s
Object.assign()
5.6M/s
structuredClone()
631K/s

Fastest: spread syntax (58.4x faster)

View exact numbers
  • spread syntax: 36,839,392 ops/sec
  • Object.assign(): 5,563,589 ops/sec
  • structuredClone(): 630,599 ops/sec
Firefox 7 runs
Object.assign()
13.2M/s
spread syntax
4.1M/s
structuredClone()
388K/s

Fastest: Object.assign() (34.1x faster)

View exact numbers
  • Object.assign(): 13,236,055 ops/sec
  • spread syntax: 4,056,080 ops/sec
  • structuredClone(): 387,943 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
    structuredClone()
    spread syntax
    Object.assign()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 28 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Chrome 150 on Windows
View result in a separate tab
spread syntax
24.6M/s
Object.assign()
2.2M/s
structuredClone()
164K/s
View exact numbers
Test name Executions per second
spread syntax 24,585,106 Ops/sec
Object.assign() 2,232,440 Ops/sec
structuredClone() 164,035 Ops/sec