Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144
Mac OS X 10.15.7
Desktop
7 months ago
Benchmark.js
JSON.stringify / parse
936K/s
Lodash cloneDeep
933K/s
Native structuredClone
408K/s
View exact numbers
Test name Executions per second
JSON.stringify / parse 936,242 Ops/sec
Lodash cloneDeep 933,074 Ops/sec
Native structuredClone 407,943 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: