Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Deep cloning of array
Deep cloning of array in js
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
json parse
3391959.5 Ops/sec
structuredClone
440214.4 Ops/sec
lodash
746969.7 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var arr = [1,2,3,4,5,6,7,8,9,10]
Tests:
json parse
JSON.parse(JSON.stringify(arr))
structuredClone
structuredClone(arr)
lodash
_.cloneDeep(arr)