Script Preparation code:
Tests:

Historical Performance Data aggregated from 1,675 community runs

Desktop Results:
Chrome 1,200 runs
JSON.stringify
1.1M/s
structuredClone
516K/s

Fastest: JSON.stringify (2.1x faster)

View exact numbers
  • JSON.stringify: 1,085,355 ops/sec
  • structuredClone: 516,090 ops/sec
Firefox 256 runs
JSON.stringify
945K/s
structuredClone
685K/s

Fastest: JSON.stringify (1.4x faster)

View exact numbers
  • JSON.stringify: 944,802 ops/sec
  • structuredClone: 684,861 ops/sec
Safari 41 runs
JSON.stringify
1.7M/s
structuredClone
873K/s

Fastest: JSON.stringify (1.9x faster)

View exact numbers
  • JSON.stringify: 1,651,859 ops/sec
  • structuredClone: 873,244 ops/sec
Other 12 runs
JSON.stringify
969K/s
structuredClone
404K/s

Fastest: JSON.stringify (2.4x faster)

View exact numbers
  • JSON.stringify: 968,662 ops/sec
  • structuredClone: 403,980 ops/sec
Mobile Results:
Chrome 88 runs
JSON.stringify
476K/s
structuredClone
166K/s

Fastest: JSON.stringify (2.9x faster)

View exact numbers
  • JSON.stringify: 475,604 ops/sec
  • structuredClone: 165,805 ops/sec
Safari 55 runs
JSON.stringify
1.7M/s
structuredClone
893K/s

Fastest: JSON.stringify (1.9x faster)

View exact numbers
  • JSON.stringify: 1,652,769 ops/sec
  • structuredClone: 893,018 ops/sec
Firefox 23 runs
JSON.stringify
433K/s
structuredClone
261K/s

Fastest: JSON.stringify (1.7x faster)

View exact numbers
  • JSON.stringify: 433,220 ops/sec
  • structuredClone: 260,862 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: 7 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Chrome 150 on Mac OS X 10.15.7
View result in a separate tab
JSON.stringify
3.0M/s
structuredClone
1.3M/s
View exact numbers
Test name Executions per second
JSON.stringify 2,960,335 Ops/sec
structuredClone 1,250,197 Ops/sec