Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148
Linux
Desktop
3 months ago
Benchmark.js
JSON.stringify / parse
2.2M/s
Lodash cloneDeep
2.0M/s
Native structuredClone
697K/s
View exact numbers
Test name Executions per second
JSON.stringify / parse 2,177,662 Ops/sec
Lodash cloneDeep 2,023,540 Ops/sec
Native structuredClone 696,888 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: