Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
Object.assign
6.8M/s
JSON.parse
1.4M/s

Fastest: Object.assign (4.7x faster)

View exact numbers
  • Object.assign: 6,773,933 ops/sec
  • JSON.parse: 1,436,764 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.parse
    Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Mac OS X 10.15.7
View result in a separate tab
Object.assign
17.4M/s
JSON.parse
2.3M/s
View exact numbers
Test name Executions per second
Object.assign 17,436,006 Ops/sec
JSON.parse 2,309,681 Ops/sec