Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
es-toolkit cloneDeep vs structuredClone
(version: 1)
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
Comparing performance of:
es-toolkit cloneDeep vs Native structuredClone
Created:
8 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/es-toolkit@%5E1"></script>
Script Preparation code:
var MyObject = { description: 'Creates a deep copy of source, which should be an object or an array.', myNumber: 123456789, myBoolean: true, jayson: { stringify: 'JSON.stringify() method converts a JavaScript value to a JSON string....', parse: 'JSON.parse() method parses a JSON string...' } }; var myCopy = null;
Tests:
es-toolkit cloneDeep
myCopy = _.cloneDeep(MyObject);
Native structuredClone
myCopy = structuredClone(MyObject);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
es-toolkit cloneDeep
Native structuredClone
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0
Browser/OS:
Chrome 146 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
es-toolkit cloneDeep
200295.6 Ops/sec
Native structuredClone
367802.2 Ops/sec
Related benchmarks:
Lodash cloneDeep vs structuredClone
Lodash cloneDeep vs structuredClone1
Lodash cloneDeep vs JSON.parse
Lodash cloneDeep vs structuredClone vs JSON
JSON clone vs structuredClone
klona vs structuredClone
jsonparse vs structuredClone
JSON.stringify&parse vs structuredClone
testeachone
Comments
Confirm delete:
Do you really want to delete benchmark?