Script Preparation code:
Tests:

Historical Performance Data aggregated from 13 community runs

Desktop Results:
Chrome 7 runs
spread
7.0M/s
Object.assign
6.4M/s
JSON.stringify
996K/s
structuredClone
277K/s

Fastest: spread (25.4x faster)

View exact numbers
  • spread: 7,023,620 ops/sec
  • Object.assign: 6,366,092 ops/sec
  • JSON.stringify: 996,418 ops/sec
  • structuredClone: 276,569 ops/sec
Firefox 6 runs
Object.assign
37.2M/s
spread
15.8M/s
JSON.stringify
1.1M/s
structuredClone
947K/s

Fastest: Object.assign (39.3x faster)

View exact numbers
  • Object.assign: 37,221,480 ops/sec
  • spread: 15,812,526 ops/sec
  • JSON.stringify: 1,061,596 ops/sec
  • structuredClone: 947,336 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
    JSON.stringify
    structuredClone
    spread
    Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
Firefox 150 on Ubuntu
View result in a separate tab
Object.assign
34.8M/s
spread
13.6M/s
JSON.stringify
1.0M/s
structuredClone
946K/s
View exact numbers
Test name Executions per second
Object.assign 34,809,060 Ops/sec
spread 13,646,557 Ops/sec
JSON.stringify 1,018,194 Ops/sec
structuredClone 946,017 Ops/sec