Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
estoolkit vs native structuredClone
(version: 1)
Comparing performance of:
estoolkit vs native
Created:
4 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:
estoolkit
myCopy = _.cloneDeep(MyObject);
native
myCopy = structuredClone(MyObject);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
estoolkit
native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Browser/OS:
Chrome 143 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
estoolkit
278921.4 Ops/sec
native
316935.1 Ops/sec
Related benchmarks:
cloneDeep vs Clone
clone vs json.pare json.stringify
object clone vs
Clone Deep vs JSON Parse
Lodash clone vs Object.assign
different clone methods
structuredClone vs clone
JSON.stringify vs structuredClone vs _.cloneDeep
es-toolkit cloneDeep vs structuredClone
Comments
Confirm delete:
Do you really want to delete benchmark?