Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146
Mac OS X 10.15.7
Desktop
5 months ago
Benchmark.js
JSON.stringify / parse
854K/s
Lodash cloneDeep
810K/s
Native structuredClone
363K/s
View exact numbers
Test name Executions per second
JSON.stringify / parse 853,551 Ops/sec
Lodash cloneDeep 809,840 Ops/sec
Native structuredClone 362,655 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: