Script Preparation code:
Tests:

Historical Performance Data aggregated from 35 community runs

Desktop Results:
Chrome 28 runs
JSON.stringify
167K/s
structuredClone
98K/s

Fastest: JSON.stringify (1.7x faster)

View exact numbers
  • JSON.stringify: 167,362 ops/sec
  • structuredClone: 98,467 ops/sec
Firefox 7 runs
structuredClone
103K/s
JSON.stringify
76K/s

Fastest: structuredClone (1.4x faster)

View exact numbers
  • structuredClone: 102,952 ops/sec
  • JSON.stringify: 76,146 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Windows
View result in a separate tab
JSON.stringify
297K/s
structuredClone
114K/s
View exact numbers
Test name Executions per second
JSON.stringify 297,188 Ops/sec
structuredClone 113,860 Ops/sec