Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
JSON.stringify / parse
2.2M/s
Lodash cloneDeep
2.1M/s
Native structuredClone
960K/s
View exact numbers
Test name Executions per second
JSON.stringify / parse 2,229,770 Ops/sec
Lodash cloneDeep 2,074,020 Ops/sec
Native structuredClone 960,042 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: