Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
JSON.stringify + parse 2282.8 Ops/sec
structuredClone 1525.8 Ops/sec
just JSON.stringify 5018.9 Ops/sec
just JSON.parse 4344.5 Ops/sec
fastest-json-copy 922.6 Ops/sec
fastCopy 1449.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • JSON.stringify + parse

  • structuredClone

  • just JSON.stringify

  • just JSON.parse

  • fastest-json-copy

  • fastCopy


;