Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141
Mac OS X 10.15
Desktop
8 months ago
Benchmark.js
Lodash cloneDeep
2.3M/s
JSON.stringify / parse
2.0M/s
Native structuredClone
2.0M/s
View exact numbers
Test name Executions per second
Lodash cloneDeep 2,330,716 Ops/sec
JSON.stringify / parse 2,002,032 Ops/sec
Native structuredClone 1,970,758 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: