Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Chrome 135
Windows
Desktop
5 days ago
Test name Executions per second
json.stringify + TextEncode 47087.1 Ops/sec
structuredClone 35718.4 Ops/sec
json.stringify 99555.6 Ops/sec
JSON 28724.1 Ops/sec
Script Preparation code:
Tests:
  • json.stringify + TextEncode

  • structuredClone

  • json.stringify

  • JSON