Script Preparation code:
Tests:

Historical Performance Data aggregated from 211 community runs

Desktop Results:
Chrome 164 runs
JSON.stringify + JSON.parse
1.0M/s
structuredClone
445K/s

Fastest: JSON.stringify + JSON.parse (2.3x faster)

View exact numbers
  • JSON.stringify + JSON.parse: 1,042,025 ops/sec
  • structuredClone: 444,876 ops/sec
Firefox 36 runs
JSON.stringify + JSON.parse
1.0M/s
structuredClone
792K/s

Fastest: JSON.stringify + JSON.parse (1.3x faster)

View exact numbers
  • JSON.stringify + JSON.parse: 1,048,977 ops/sec
  • structuredClone: 791,836 ops/sec
Mobile Results:
Chrome 11 runs
JSON.stringify + JSON.parse
852K/s
structuredClone
209K/s

Fastest: JSON.stringify + JSON.parse (4.1x faster)

View exact numbers
  • JSON.stringify + JSON.parse: 852,166 ops/sec
  • structuredClone: 209,427 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 + JSON.parse
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
structuredClone
1.1M/s
JSON.stringify + JSON.parse
947K/s
View exact numbers
Test name Executions per second
structuredClone 1,051,283 Ops/sec
JSON.stringify + JSON.parse 947,104 Ops/sec