HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 44 community runs

Desktop Results:
Chrome 38 runs
json parsing
277/s
structuredClone
201/s
clonedeep
168/s

Fastest: json parsing (1.7x faster)

View exact numbers
  • json parsing: 277 ops/sec
  • structuredClone: 201 ops/sec
  • clonedeep: 168 ops/sec
Firefox 6 runs
structuredClone
320/s
json parsing
308/s
clonedeep
97/s

Fastest: structuredClone (3.3x faster)

View exact numbers
  • structuredClone: 320 ops/sec
  • json parsing: 308 ops/sec
  • clonedeep: 97 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
    clonedeep
    structuredClone
    json parsing

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Windows
View result in a separate tab
structuredClone
124/s
json parsing
94/s
clonedeep
76/s
View exact numbers
Test name Executions per second
structuredClone 124 Ops/sec
json parsing 94 Ops/sec
clonedeep 76 Ops/sec