deep copy

Benchmark created on


Setup

https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js

Test runner

Ready to run.

Testing in
TestOps/sec
deep lodash
const valule = {};
_.cloneDeep(valule);
ready
json
const valule = {};
JSON.parse( JSON.stringify(valule))
ready
web api
const valule = {};
structuredClone(valule)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.