Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0
Firefox 149
Mac OS X 10.15
Desktop
5 months ago
Benchmark.js
Lodash cloneDeep
2.6M/s
JSON.stringify / parse
2.0M/s
Native structuredClone
2.0M/s
View exact numbers
Test name Executions per second
Lodash cloneDeep 2,634,608 Ops/sec
JSON.stringify / parse 2,043,284 Ops/sec
Native structuredClone 1,979,816 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: